Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorConvoCoordSystem Class Reference

Behavior element behavior adding conversation coordinate support. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorConvoCoordSystem:
Dragengine.Scenery.DefaultECBehavior Dragengine.Scenery.ECBehavior Dragengine.Scenery.BehaviorCompatiblePersistency

Classes

class  Factory
 Behavior factory. More...
class  Instance
 Behavior instance. More...

Public Member Functions

ECPStringID getName ()
 Name of conversation coordinate system.
ECPVector getOrientation ()
 Orientation relative to behavior element.
ECPVector getPosition ()
 Position relative to behavior element.
String getPrefix ()
 Property prefix.
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
ECBehaviorConvoCoordSystem new (BehaviorElementClass eclass)
 Create behavior element class.
ECBehaviorConvoCoordSystem new (BehaviorElementClass eclass, String id)
 Create behavior element class.
ECBehaviorConvoCoordSystem new (BehaviorElementClass eclass, String id, String prefix)
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void assignInstanceIndex (int instanceIndex)
 Assign instance index.
void dispose ()
 Dispose of behavior.
String getBehaviorID ()
 Unique identifier of behavior.
String getID ()
 Identifier.
int getInstanceIndex ()
 Instance index.
void loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance)
 Load instance data of another behavior.
bool supportsBehaviorID (String identifier)
 Behavior supports loading instance data of another behavior.
Public Member Functions inherited from Dragengine.Scenery.ECBehavior
ECBehaviorInstance createInstance (BehaviorElement element)
 Create Behavior instance.

Static Public Member Functions

static ECBehaviorConvoCoordSystem getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.

Public Attributes

ECPStringID pName
ECPVector pOrientation
ECPVector pPosition
String pPrefix

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void setBehaviorID (String identifier)
 Set behavior identifier.
void useClassNameAsBehaviorID ()
 Set behavior identifier to "<class-name>:<identifier>".
void useFullyQualifiedClassNameAsBehaviorID ()
 Set behavior identifier to "<fully-qualified-class-name>:<identifier>".

Detailed Description

Behavior element behavior adding conversation coordinate support.

Instance adds a ElementConvoCoordSystem to the game world the element is added to. These can be added to conversation playbacks as targets for actions. Multiple ECBehaviorConvoCoordSystem can be added creating individual ElementConvoCoordSystem instances. The ElementConvoCoordSystem returns the position relative to the element if queried.

The default implementation registers the ElementConvoCoordSystem in the conversation coordinate system list of the GameWorld the element is added to. If name is empty string no convo coordinate system is created.

This behavior does require the element class to be persistable (setPersistable).

See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:behavior_convocoordsystem

Member Function Documentation

◆ getBehaviorIn()

ECBehaviorConvoCoordSystem Dragengine.Scenery.ECBehaviorConvoCoordSystem.getBehaviorIn ( BehaviorElementClass eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorComponent.

References Dragengine.Scenery.ECBehavior.createInstance(), getBehaviorIn(), getName(), getOrientation(), getPosition(), getPrefix(), instance(), new(), pName, pOrientation, pPosition, and pPrefix.

Referenced by getBehaviorIn().

◆ getName()

ECPStringID Dragengine.Scenery.ECBehaviorConvoCoordSystem.getName ( )

Name of conversation coordinate system.

Referenced by Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance.createCoordSystem(), and getBehaviorIn().

◆ getOrientation()

ECPVector Dragengine.Scenery.ECBehaviorConvoCoordSystem.getOrientation ( )

Orientation relative to behavior element.

Referenced by getBehaviorIn(), and Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance.getConvoCoordSystem().

◆ getPosition()

ECPVector Dragengine.Scenery.ECBehaviorConvoCoordSystem.getPosition ( )

Position relative to behavior element.

Referenced by getBehaviorIn(), and Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance.getConvoCoordSystem().

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorConvoCoordSystem.getPrefix ( )

Property prefix.

Version
1.31

Referenced by getBehaviorIn().

◆ instance()

Instance Dragengine.Scenery.ECBehaviorConvoCoordSystem.instance ( BehaviorElement element)

Get instance in element from owner element class.

References pName, pOrientation, pPosition, and pPrefix.

Referenced by getBehaviorIn().

◆ new() [1/3]

ECBehaviorConvoCoordSystem Dragengine.Scenery.ECBehaviorConvoCoordSystem.new ( BehaviorElementClass eclass)

Create behavior element class.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

Referenced by getBehaviorIn().

◆ new() [2/3]

ECBehaviorConvoCoordSystem Dragengine.Scenery.ECBehaviorConvoCoordSystem.new ( BehaviorElementClass eclass,
String id )

Create behavior element class.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

◆ new() [3/3]

ECBehaviorConvoCoordSystem Dragengine.Scenery.ECBehaviorConvoCoordSystem.new ( BehaviorElementClass eclass,
String id,
String prefix )

Member Data Documentation

◆ pName

ECPStringID Dragengine.Scenery.ECBehaviorConvoCoordSystem.pName

Referenced by getBehaviorIn(), and instance().

◆ pOrientation

ECPVector Dragengine.Scenery.ECBehaviorConvoCoordSystem.pOrientation

Referenced by getBehaviorIn(), and instance().

◆ pPosition

ECPVector Dragengine.Scenery.ECBehaviorConvoCoordSystem.pPosition

Referenced by getBehaviorIn(), and instance().

◆ pPrefix

String Dragengine.Scenery.ECBehaviorConvoCoordSystem.pPrefix

Referenced by getBehaviorIn(), and instance().


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