Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorStashable.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void addListener (Listener listener)
 Add listener.
 
void dispose ()
 Dispose of inventory.
 
UnicodeString getDescription ()
 Description to display.
 
ECBehaviorStashable getECBehavior ()
 Behavior.
 
Image getImage ()
 Image to display.
 
ECBehaviorInventory.Instance getInventory ()
 Inventory this element is part of or null.
 
UnicodeString getName ()
 Name to display.
 
Video getVideo ()
 Video to display.
 
void init (StubElement stub)
 Initialize element from stub.
 
void moveToInventory (ECBehaviorInventory.Instance inventory)
 Safely moves to a different inventory.
 
Instance new (ECBehaviorStashable ecbehavior, BehaviorElement element)
 Create element.
 
void removeFromInventory ()
 Remove from inventory if part of one.
 
void removeFromInventoryAndDispose ()
 Remove from inventory if part of one and safely disposes of the element.
 
void removeListener (Listener listener)
 Remove listener.
 
void setInventory (ECBehaviorInventory.Instance inventory)
 Set inventory.
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world.
 
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor.
 
void enterFrame ()
 Frame update started.
 
void geometryChanged ()
 Position or orientation changed.
 
BehaviorElement getElement ()
 Behavior element to apply behavior to.
 
int getInstanceIndex ()
 Behavior instance index.
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance.
 
void postThink (float elapsed)
 Post thinking after physics processing is finished.
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file.
 
void removeFromGameWorld ()
 Remove element from game world.
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called.
 
bool requiresThink ()
 Behavior instance requires think() to be called.
 
void stateChanged ()
 State changed (visble, touchable).
 
void think (float elapsed)
 Think about what to do for the next frame update.
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.
 

Public Attributes

ECComposeBTSM.Instance pBTSMs
 
UnicodeString pDescription
 
ECBehaviorStashable pECBehavior
 
Image pImage
 
ECBehaviorInventory.Instance pInventory
 
Array pListeners
 
UnicodeString pName
 
Video pVideo
 
- Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
 
int pInstanceIndex
 
bool pRequiresEnterFrame
 
bool pRequiresThink
 

Additional Inherited Members

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

Detailed Description

Behavior instance.

Member Function Documentation

◆ addListener()

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

Add listener.

◆ dispose()

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

Dispose of inventory.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getDescription()

UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.getDescription ( )

Description to display.

◆ getECBehavior()

ECBehaviorStashable Dragengine.Scenery.ECBehaviorStashable.Instance.getECBehavior ( )

Behavior.

◆ getImage()

Image Dragengine.Scenery.ECBehaviorStashable.Instance.getImage ( )

Image to display.

◆ getInventory()

ECBehaviorInventory.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.getInventory ( )

Inventory this element is part of or null.

◆ getName()

UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.getName ( )

Name to display.

◆ getVideo()

Video Dragengine.Scenery.ECBehaviorStashable.Instance.getVideo ( )

Video to display.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ moveToInventory()

void Dragengine.Scenery.ECBehaviorStashable.Instance.moveToInventory ( ECBehaviorInventory.Instance  inventory)

Safely moves to a different inventory.

Convenience method for calling removeFromInventory() then addToInventory() or doing nothing if the inventory is the same.

◆ new()

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

Create element.

◆ removeFromInventory()

void Dragengine.Scenery.ECBehaviorStashable.Instance.removeFromInventory ( )

Remove from inventory if part of one.

◆ removeFromInventoryAndDispose()

void Dragengine.Scenery.ECBehaviorStashable.Instance.removeFromInventoryAndDispose ( )

Remove from inventory if part of one and safely disposes of the element.

◆ removeListener()

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

Remove listener.

◆ setInventory()

void Dragengine.Scenery.ECBehaviorStashable.Instance.setInventory ( ECBehaviorInventory.Instance  inventory)

Set inventory.

Warning
For use by ECBehaviorInventory only.

Member Data Documentation

◆ pBTSMs

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.pBTSMs

◆ pDescription

UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.pDescription

◆ pECBehavior

ECBehaviorStashable Dragengine.Scenery.ECBehaviorStashable.Instance.pECBehavior

◆ pImage

Image Dragengine.Scenery.ECBehaviorStashable.Instance.pImage

◆ pInventory

ECBehaviorInventory.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.pInventory

◆ pListeners

Array Dragengine.Scenery.ECBehaviorStashable.Instance.pListeners

◆ pName

UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.pName

◆ pVideo

Video Dragengine.Scenery.ECBehaviorStashable.Instance.pVideo

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