|
Drag[en]gine Script Module DragonScript 1.32.1
|
Basic force field class using force field behavior. More...
Public Member Functions | |
| ElementClass | duplicateNamed (String classname) |
| Create copy of element class. | |
| ECBehaviorForceField | getForceField () |
| ForceField behavior. | |
| BaseForceFieldClass | new () |
| Create element class. | |
| BaseForceFieldClass | new (String className) |
| Create element class using loaders from BaseGameApp. | |
| BaseForceFieldClass | new (String className, TSTriggerTable triggerTable) |
| Create element class. | |
| BaseForceFieldClass | new (TSTriggerTable triggerTable) |
| Create element class. | |
Public Member Functions inherited from Dragengine.Scenery.BehaviorElementClass | |
| void | addAttachableBehaviorFactories () |
| Add attachable behavior factories supported by this element class. | |
| void | addAttachableBehaviorFactories (AttachableBehaviorFactoryList factories) |
| Add attachable behavior factories replacing duplicates if present. | |
| void | addAttachableBehaviorFactory (AttachableBehaviorFactory factory) |
| Add attachable behavior factory replacing duplicate if present. | |
| void | addBehavior (ECBehavior behavior) |
| Add behavior. | |
| void | addBehaviorFactories (BehaviorFactoryList factories) |
| Add behavior factories replacing duplicates if present. | |
| void | addDefaultAttachableBehaviorFactories () |
| Add all attachable behavior factories present in the DragonScript module. | |
| void | addDefaultBehaviorFactories () |
| Add all behavior factories present in the DragonScript module. | |
| void | addXmlBehaviorInfo (BehaviorFactory factory, String id, Dictionary parameters) |
| Add XML behavior information required for XML-XML subclassing. | |
| Array | collectBehaviors (Block ablock) |
| Collect behaviors with block into Array. | |
| void | createAndAddElement (StubElement stub, GameWorld gameWorld) |
| Create element from given stub and add it to game world. | |
| void | dispose () |
| Dispose of element class. | |
| ECBehavior | findBehavior (Block ablock) |
| Find behavior with block. | |
| void | forEachAttachableBehaviorFactory (Block ablock) |
| Visit attachable behavior factories. | |
| void | forEachBehavior (Block ablock) |
| Visit behaviors with block. | |
| void | forEachBehaviorDirect (Block ablock) |
| Visit behaviors with block. | |
| void | forEachBehaviorFactory (Block ablock) |
| Visit behavior factories. | |
| void | forEachPrepareStubBehavior (Block ablock) |
| Visit prepare stub behaviors with block. version 1.23. | |
| void | forEachPreventCreationBehavior (Block ablock) |
| Visit prevent creation behaviors with block. version 1.23. | |
| void | forEachXmlBehaviorInfo (Block ablock) |
| Visit XML behavior info with block with argument XmlBehaviorInfo. | |
| AttachableBehaviorFactory | getAttachableBehaviorFactoryWithId (String id) |
| Attachable behavior factory with identifier or null if absent. | |
| ECBehavior | getBehaviorAt (int index) |
| Behavior at index. | |
| BehaviorFactory | getBehaviorFactoryWithId (String id) |
| Behavior factory with identifier or null if absent. | |
| ECBehavior | getBehaviorWithId (String id) |
| Behavior with matching BehaviorCompatiblePersistency::getBehaviorID() or null. | |
| BehaviorElementClass | new (Loaders loaders) |
| Create element class. | |
| BehaviorElementClass | new (String className, Loaders loaders) |
| Create element class. | |
| void | prepareStubs (StubElement stub, GameWorld gameWorld, bool loading) |
| Call prepareStub on all prepare stub behaviors. | |
| bool | preventCreation (StubElement stub, GameWorld gameWorld) |
| Call prepareStub on all prepare stub behaviors. | |
| void | removeAllAttachableBehaviorFactories () |
| Remove all attachable behavior factories. | |
| void | removeAllBehaviorFactories () |
| Remove all behavior factories. | |
Public Member Functions inherited from Dragengine.Scenery.ElementClass | |
| void | addProperty (ElementClassProperty property) |
| Add property. | |
| void | copyPropertyValues (ElementClass eclass) |
| Copy values of properties from another class to properties of this class. | |
| Element | createElement (StubElement stub) |
| Create element instance from stub. | |
| bool | equals (Object obj) |
| Element class is equal to another object. | |
| void | failedLoading (String path, ResourceLoaderType resourceType) |
| Resource failed loading. | |
| void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
| Resource finished loading successfully. | |
| void | forEachProperty (Block ablock) |
| Visit properties with block with parameter ElementClass. | |
| String | getBasePath () |
| Base path for relative loading of resource properties. | |
| CodecPropertyString | getCodecPropertyString () |
| Property codec helper. | |
| bool | getIsXmlElementClass () |
| Element class is an XML element class. | |
| bool | getPersistable () |
| Element class is persistable to file writers. | |
| int | getPropertyCount () |
| Number of properties. | |
| ElementClassProperty | getPropertyNamed (String name) |
| Named property or null if absent. | |
| Array | getPropertyNames () |
| List of property names as array of strings. | |
| TSTriggerExpressionParser | getTriggerExpressionParser () |
| Trigger expression parser. | |
| int | hashCode () |
| Hash code. | |
| bool | hasPropertyNamed (String name) |
| Named property is present. | |
| Object | injectProperty (Object injectValue, Block ablock) |
| Process value visiting properties. | |
| void | loadAndAddElement (PersistencyEnvironment env, StubElement stub, FileReader reader, GameWorld gameWorld) |
| Load element from file reader and add it to game world. | |
| Element | loadElement (PersistencyEnvironment env, StubElement stub, FileReader reader) |
| Load element from file reader. | |
| void | removeAllProperties () |
| Remove all properties. | |
| void | removeProperty (ElementClassProperty property) |
| Remove property. | |
| void | setBasePath (String path) |
| Set base path for relative loading of resource properties. | |
| void | setIsXmlElementClass (bool isXmlElementClass) |
| Set if element class is an XML element class. | |
| void | setPersistable (bool persistable) |
| Set element class is persistable to file writers. | |
| void | setPropertyValue (String name, Object value) |
| Set value of named property. | |
Notification | |
Protected Member Functions | |
| Element | createElement () |
| Create element instance. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Dragengine.Scenery.ElementClass | |
| static CodecPropertyString | getSharedCodecPropertyString () |
| Shared property codec helper. | |
| static TSTriggerExpressionParser | getSharedTriggerExpressionParser () |
| Shared trigger expression parser. | |
| static void | setSharedCodecPropertyString (CodecPropertyString codec) |
| Set shared property codec helper. | |
| static void | setSharedTriggerExpressionParser (TSTriggerExpressionParser parser) |
| Set shared trigger expression parser. | |
Public Attributes inherited from Dragengine.Scenery.BehaviorElementClass | |
| Dictionary | pBehaviorFactories |
| Dictionary | pBehaviorIdMap |
| Array | pBehaviors |
| Array | pXmlBehaviorsInfo |
Static Public Attributes inherited from Dragengine.Scenery.BehaviorElementClass | |
| static BehaviorFactoryHelper | sharedFactoryHelper = BehaviorFactoryHelper.new() |
Basic force field class using force field behavior.
|
protected |
Create element instance.
Reimplemented from Dragengine.Scenery.BehaviorElementClass.
| ElementClass Dragengine.Scenery.BaseForceFieldClass.duplicateNamed | ( | String | classname | ) |
Create copy of element class.
Reimplemented from Dragengine.Scenery.ElementClass.
| ECBehaviorForceField Dragengine.Scenery.BaseForceFieldClass.getForceField | ( | ) |
ForceField behavior.
| BaseForceFieldClass Dragengine.Scenery.BaseForceFieldClass.new | ( | ) |
Create element class.
Reimplemented from Dragengine.Scenery.BehaviorElementClass.
| BaseForceFieldClass Dragengine.Scenery.BaseForceFieldClass.new | ( | String | className | ) |
Create element class using loaders from BaseGameApp.
Reimplemented from Dragengine.Scenery.BehaviorElementClass.
| BaseForceFieldClass Dragengine.Scenery.BaseForceFieldClass.new | ( | String | className, |
| TSTriggerTable | triggerTable | ||
| ) |
Create element class.
| BaseForceFieldClass Dragengine.Scenery.BaseForceFieldClass.new | ( | TSTriggerTable | triggerTable | ) |
Create element class.