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

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorInventory.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

Public Member Functions

void add (ECBehaviorStashable.Instance stashable)
 Add stashable to inventory. More...
 
void addListener (Listener listener)
 Add listener. More...
 
void addToGameWorld ()
 Add element to game world. More...
 
void dispose ()
 Dispose of composeable instance. More...
 
void enterFrame ()
 Frame update started. More...
 
void forEach (Block ablock)
 Visit stashables with block. More...
 
ECBehaviorStashable.Instance getAt (int index)
 Stashable at index. More...
 
int getCount ()
 Count of stashables. More...
 
ECBehaviorInventory getECBehavior ()
 Behavior. More...
 
ElementResolver getElementResolver ()
 Element resolver used during loading or null if not set. More...
 
bool has (ECBehaviorStashable.Instance stashable)
 Stashable is present. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance new (ECBehaviorInventory ecbehavior, BehaviorElement element)
 Create element. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file. More...
 
void remove (ECBehaviorStashable.Instance stashable)
 Remove stashable without disposing of it. More...
 
void removeAndDispose (ECBehaviorStashable.Instance stashable)
 Remove stashable and dispose of it. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write element to file. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. More...
 
void geometryChanged ()
 Position or orientation changed. More...
 
BehaviorElement getElement ()
 Behavior element to apply behavior to. More...
 
int getInstanceIndex ()
 Behavior instance index. More...
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called. More...
 
bool requiresThink ()
 Behavior instance requires think() to be called. More...
 
void stateChanged ()
 State changed (visble, touchable). More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called. More...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ add()

void Dragengine.Scenery.ECBehaviorInventory.Instance.add ( ECBehaviorStashable.Instance  stashable)

Add stashable to inventory.

Exceptions
EInvalidParamstashable is null.
EInvalidParamstashable is already in another inventory.

◆ addListener()

void Dragengine.Scenery.ECBehaviorInventory.Instance.addListener ( Listener  listener)

Add listener.

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorInventory.Instance.addToGameWorld ( )

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose()

void Dragengine.Scenery.ECBehaviorInventory.Instance.dispose ( )

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ enterFrame()

void Dragengine.Scenery.ECBehaviorInventory.Instance.enterFrame ( )

Frame update started.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ forEach()

void Dragengine.Scenery.ECBehaviorInventory.Instance.forEach ( Block  ablock)

Visit stashables with block.

Block receives as only argument ECBehaviorStashable.Instance stashable.

◆ getAt()

ECBehaviorStashable.Instance Dragengine.Scenery.ECBehaviorInventory.Instance.getAt ( int  index)

Stashable at index.

◆ getCount()

int Dragengine.Scenery.ECBehaviorInventory.Instance.getCount ( )

Count of stashables.

◆ getECBehavior()

ECBehaviorInventory Dragengine.Scenery.ECBehaviorInventory.Instance.getECBehavior ( )

Behavior.

◆ getElementResolver()

ElementResolver Dragengine.Scenery.ECBehaviorInventory.Instance.getElementResolver ( )

Element resolver used during loading or null if not set.

◆ has()

bool Dragengine.Scenery.ECBehaviorInventory.Instance.has ( ECBehaviorStashable.Instance  stashable)

Stashable is present.

◆ init()

void Dragengine.Scenery.ECBehaviorInventory.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

Instance Dragengine.Scenery.ECBehaviorInventory.Instance.new ( ECBehaviorInventory  ecbehavior,
BehaviorElement  element 
)

Create element.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorInventory.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ remove()

void Dragengine.Scenery.ECBehaviorInventory.Instance.remove ( ECBehaviorStashable.Instance  stashable)

Remove stashable without disposing of it.

◆ removeAndDispose()

void Dragengine.Scenery.ECBehaviorInventory.Instance.removeAndDispose ( ECBehaviorStashable.Instance  stashable)

Remove stashable and dispose of it.

Calls removeFromGameWorldIfPresent() then dispose() on the stashable.

◆ removeFromGameWorld()

void Dragengine.Scenery.ECBehaviorInventory.Instance.removeFromGameWorld ( )

Remove element from game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorInventory.Instance.removeListener ( Listener  listener)

Remove listener.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorInventory.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write element to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


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