Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ElementClassList Class Reference

List of element classes. More...

Inheritance diagram for Dragengine.Scenery.ElementClassList:

Public Member Functions

void add (ElementClass eclass)
 Add class. More...
 
void dispose ()
 Dispose of all classes. More...
 
ElementClass find (Block ablock)
 Find element classes using block. More...
 
void forEach (Block ablock)
 Visit element classes using block. More...
 
void forEachCastable (Block ablock)
 Visit element classes using block if castable. More...
 
ElementClass getNamed (String name)
 Named class or null if absent. More...
 
bool has (ElementClass eclass)
 Element class is present. More...
 
bool hasNamed (String name)
 Named class is present. More...
 
ElementClassList new ()
 Create element class manager. More...
 
void remove (ElementClass eclass)
 Remove class. More...
 
void removeAll ()
 Remove all classes. More...
 
void removeAllNoDispose ()
 Remove all classes without calling ElementClass.dispose(). More...
 
void removeNamed (String name)
 Remove named class if present. More...
 
void removeNamedNoDispose (String name)
 Remove named class if present without calling ElementClass.dispose(). More...
 

Detailed Description

List of element classes.

Member Function Documentation

◆ add()

void Dragengine.Scenery.ElementClassList.add ( ElementClass  eclass)

Add class.

◆ dispose()

void Dragengine.Scenery.ElementClassList.dispose ( )

Dispose of all classes.

◆ find()

ElementClass Dragengine.Scenery.ElementClassList.find ( Block  ablock)

Find element classes using block.

Version
1.7

Block parameter is of type ElementClass and returns true if found.

◆ forEach()

void Dragengine.Scenery.ElementClassList.forEach ( Block  ablock)

Visit element classes using block.

Block parameter is of type ElementClass.

◆ forEachCastable()

void Dragengine.Scenery.ElementClassList.forEachCastable ( Block  ablock)

Visit element classes using block if castable.

Version
1.7

Block is called only for classes castable to block parameter.

◆ getNamed()

ElementClass Dragengine.Scenery.ElementClassList.getNamed ( String  name)

Named class or null if absent.

◆ has()

bool Dragengine.Scenery.ElementClassList.has ( ElementClass  eclass)

Element class is present.

Version
1.21

◆ hasNamed()

bool Dragengine.Scenery.ElementClassList.hasNamed ( String  name)

Named class is present.

◆ new()

ElementClassList Dragengine.Scenery.ElementClassList.new ( )

Create element class manager.

◆ remove()

void Dragengine.Scenery.ElementClassList.remove ( ElementClass  eclass)

Remove class.

Calls ElementClass.dispose().

◆ removeAll()

void Dragengine.Scenery.ElementClassList.removeAll ( )

Remove all classes.

Calls all ElementClass.dispose().

◆ removeAllNoDispose()

void Dragengine.Scenery.ElementClassList.removeAllNoDispose ( )

Remove all classes without calling ElementClass.dispose().

Version
1.21

◆ removeNamed()

void Dragengine.Scenery.ElementClassList.removeNamed ( String  name)

Remove named class if present.

Calls ElementClass.dispose() if removed.

◆ removeNamedNoDispose()

void Dragengine.Scenery.ElementClassList.removeNamedNoDispose ( String  name)

Remove named class if present without calling ElementClass.dispose().

Version
1.21

The documentation for this class was generated from the following file: