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

List of element class elements class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPElementClassList:
Dragengine.Scenery.ElementClassProperty

Public Member Functions

void addElementClass (ElementClass elementClass)
 Add element class. More...
 
void addElementClassName (String elementClassName)
 Add element class name. More...
 
void dispose ()
 Dispose of element class property to break reference loops. More...
 
void forEachElementClass (Block ablock)
 For each element class with block with ElementClass as parameter. More...
 
ElementClass getElementClassAt (int index)
 Element clas at index. More...
 
int getElementClassCount ()
 Number of element classes. More...
 
ElementClassList getElementClassList ()
 Element class manager to look up element class in. More...
 
bool getHasPreloaded ()
 Property has been preloaded. More...
 
ElementClass getRandomElementClass ()
 Get random element class or null if no element class is present. More...
 
ECPElementClassList new (String name, ElementClassList eclassList)
 Create property. More...
 
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported. More...
 
void removeAllElementClass ()
 Remove all element classes. More...
 
void removeAllElementClassNames ()
 Remove all element class names. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
String getName ()
 Name. More...
 
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems. More...
 
ElementClassProperty new (String name)
 Create property. More...
 

Detailed Description

List of element class elements class property for use with XML loading.

Similar to ECPElementClass but allows to store any number of element classes. Useful for having a list of similar element classes picking one randomly.

Member Function Documentation

◆ addElementClass()

void Dragengine.Scenery.ECPElementClassList.addElementClass ( ElementClass  elementClass)

Add element class.

◆ addElementClassName()

void Dragengine.Scenery.ECPElementClassList.addElementClassName ( String  elementClassName)

Add element class name.

◆ dispose()

void Dragengine.Scenery.ECPElementClassList.dispose ( )

Dispose of element class property to break reference loops.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ forEachElementClass()

void Dragengine.Scenery.ECPElementClassList.forEachElementClass ( Block  ablock)

For each element class with block with ElementClass as parameter.

◆ getElementClassAt()

ElementClass Dragengine.Scenery.ECPElementClassList.getElementClassAt ( int  index)

Element clas at index.

◆ getElementClassCount()

int Dragengine.Scenery.ECPElementClassList.getElementClassCount ( )

Number of element classes.

◆ getElementClassList()

ElementClassList Dragengine.Scenery.ECPElementClassList.getElementClassList ( )

Element class manager to look up element class in.

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPElementClassList.getHasPreloaded ( )

Property has been preloaded.

◆ getRandomElementClass()

ElementClass Dragengine.Scenery.ECPElementClassList.getRandomElementClass ( )

Get random element class or null if no element class is present.

◆ new()

ECPElementClassList Dragengine.Scenery.ECPElementClassList.new ( String  name,
ElementClassList  eclassList 
)

Create property.

◆ preloadResources()

void Dragengine.Scenery.ECPElementClassList.preloadResources ( ElementClass  elementClass,
PreloadCounter  counter 
)

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ removeAllElementClass()

void Dragengine.Scenery.ECPElementClassList.removeAllElementClass ( )

Remove all element classes.

◆ removeAllElementClassNames()

void Dragengine.Scenery.ECPElementClassList.removeAllElementClassNames ( )

Remove all element class names.

◆ setValue()

void Dragengine.Scenery.ECPElementClassList.setValue ( Object  value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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