Drag[en]gine Script Module DragonScript
1.23
|
Default implementation of ECBehaviorInstance doing nothing. More...
Public Member Functions | |
void | addToGameWorld () |
Add element to game world. More... | |
void | attachToParent (Element parent) |
Attach element to object set by the mapper in the IGDE World Editor. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
void | enterFrame () |
Frame update started. More... | |
void | geometryChanged () |
Position or orientation changed. More... | |
BehaviorElement | getElement () |
Behavior element to apply behavior to. More... | |
int | getInstanceIndex () |
Behavior instance index. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
DefaultECBehaviorInstance | new (BehaviorElement element) |
Create default composeable instance. More... | |
void | postThink (float elapsed) |
Post thinking after physics processing is finished. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. More... | |
void | removeFromGameWorld () |
Remove element from game world. 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... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior instance to file. More... | |
Protected Member Functions | |
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... | |
Default implementation of ECBehaviorInstance doing nothing.
void Dragengine.Scenery.DefaultECBehaviorInstance.addToGameWorld | ( | ) |
Add element to game world.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRHMD.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTouchSensor.Instance, Dragengine.Scenery.ECBehaviorTouching.Instance, Dragengine.Scenery.ECBehaviorToggle.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorEvaluate.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorHearSounds.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorGrabber.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorParticleEmitter.Instance, Dragengine.Scenery.ECBehaviorNavigationSpace.Instance, Dragengine.Scenery.ECBehaviorNavigationBlocker.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorEnvMapProbe.Instance, Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance, Dragengine.Scenery.ECBehaviorComponent.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorCamera.Instance, Dragengine.Scenery.ECBehaviorBillboard.Instance, Dragengine.Scenery.ECBehaviorAnchorElement.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorNavigator.Instance, Dragengine.Scenery.ECBehaviorColliderAI.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, Dragengine.Gui.MainMenus.Interactive.IMMBehaviorHotSpot.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorColliderInteract.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.attachToParent | ( | Element | parent | ) |
Attach element to object set by the mapper in the IGDE World Editor.
Behavior instance is responsible to call BehaviorElement.setParent() if the attaching succeedes. If multiple behaviors support attaching they have to negotiate with each other who does the attaching for example by using BehaviorElement.getParent().
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorAttachDynamicSkin.Instance, and Dragengine.Scenery.ECBehaviorAttachToParent.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.dispose | ( | ) |
Dispose of behavior instance.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRPlayspace.Instance, Dragengine.Scenery.ECBehaviorVRPlayspace.Instance, Dragengine.Scenery.ECBehaviorVRHMD.Instance, Dragengine.Scenery.ECBehaviorVRHandPose.Instance, Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance, Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorVRHand.Instance, Dragengine.Scenery.ECBehaviorVRControlDesktop.Instance, Dragengine.Scenery.ECBehaviorTriggered.Instance, Dragengine.Scenery.ECBehaviorTouchSensor.Instance, Dragengine.Scenery.ECBehaviorTouchSensor.Instance, Dragengine.Scenery.ECBehaviorTouching.Instance, Dragengine.Scenery.ECBehaviorToggle.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorEvaluate.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorPlaySound.Instance, Dragengine.Scenery.ECBehaviorHearSounds.Instance, Dragengine.Scenery.ECBehaviorHearSounds.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorPlayerLookAtInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerLookAtInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerInputTurn.Instance, Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance, Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance, Dragengine.Scenery.ECBehaviorPlayerInputCrouch.Instance, Dragengine.Scenery.ECBehaviorPlayerControllable.Instance, Dragengine.Scenery.ECBehaviorNStateLocomotion.Instance, Dragengine.Scenery.ECBehaviorNStateGeometry.Instance, Dragengine.Scenery.ECBehaviorNetworkState.Instance, Dragengine.Scenery.ECBehaviorStashable.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance, Dragengine.Scenery.ECBehaviorOccupier.Instance, Dragengine.Scenery.ECBehaviorLookedAt.Instance, Dragengine.Scenery.ECBehaviorInteractionSpot.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorGrabber.Instance, Dragengine.Scenery.ECBehaviorGrabber.Instance, Dragengine.Scenery.ECBehaviorControlDesktop.Instance, Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance, Dragengine.Scenery.ECBehaviorStateMachine.Instance, Dragengine.Scenery.ECBehaviorShowMessage.Instance, Dragengine.Scenery.ECBehaviorShowElement.Instance, Dragengine.Scenery.ECBehaviorRidable.Instance, Dragengine.Scenery.ECBehaviorParticleEmitter.Instance, Dragengine.Scenery.ECBehaviorNavigationSpace.Instance, Dragengine.Scenery.ECBehaviorNavigationBlocker.Instance, Dragengine.Scenery.ECBehaviorLightDimmer.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorHitScan.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorEnvMapProbe.Instance, Dragengine.Scenery.ECBehaviorDecal.Instance, Dragengine.Scenery.ECBehaviorCustomColor.Instance, Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorCamera.Instance, Dragengine.Scenery.ECBehaviorRenderablePanel.Instance, Dragengine.Scenery.ECBehaviorRenderableLight.Instance, Dragengine.Scenery.ECBehaviorRenderableDesktop.Instance, Dragengine.Scenery.ECBehaviorRenderableCustomColor.Instance, Dragengine.Scenery.ECBehaviorRenderableCanvasBase.Instance, Dragengine.Scenery.ECBehaviorRenderableCanvas.Instance, Dragengine.Scenery.ECBehaviorDynamicSkin.Instance, Dragengine.Scenery.ECBehaviorAttachDynamicSkin.Instance, Dragengine.Scenery.ECBehaviorConversation.Instance, Dragengine.Scenery.ECBCTRRBindings.Instance, Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance, Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance, Dragengine.Scenery.ECBehaviorAttachToParent.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorAttachments.Instance, Dragengine.Scenery.ECBehaviorAttachable.Instance, Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance, Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorStepAside.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorParameterTable.Instance, Dragengine.Scenery.ECBehaviorNavigator.Instance, Dragengine.Scenery.ECBehaviorLookAt.Instance, Dragengine.Scenery.ECBehaviorLookAt.Instance, Dragengine.Scenery.ECBehaviorLocomotion.Instance, Dragengine.Scenery.ECBehaviorFootSteps.Instance, Dragengine.Scenery.ECBehaviorColliderAI.Instance, Dragengine.Scenery.ECBehaviorClearPath.Instance, Dragengine.Scenery.ECBehaviorBodyTilting.Instance, Dragengine.Scenery.ECBehaviorBehaviorTree.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorAlignActor.Instance, Dragengine.Scenery.ECBehaviorActorTransmission.Instance, Dragengine.Scenery.ECBehaviorActorTransmission.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorIK.Instance, Dragengine.Scenery.ECBehaviorActorCutscene.ConversationController.Instance, Dragengine.Scenery.ECBehaviorActorCutscene.ConversationController.Instance, Dragengine.Scenery.ECBehaviorActorAnimated.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, Dragengine.Gui.MainMenus.Interactive.IMMBehaviorHotSpot.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorColliderInteract.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.enterFrame | ( | ) |
Frame update started.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorOccupier.Instance, Dragengine.Scenery.ECBehaviorLookedAt.Instance, Dragengine.Scenery.ECBehaviorInteractionSpot.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorAttachable.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorAlignActor.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorIK.Instance, and Dragengine.Scenery.ECBehaviorActorAIAction.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.geometryChanged | ( | ) |
Position or orientation changed.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorVRPlayspace.Instance, Dragengine.Scenery.ECBehaviorNStateGeometry.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorLocomotion.Instance, and Dragengine.Scenery.ECBehaviorColliderAI.Instance.
BehaviorElement Dragengine.Scenery.DefaultECBehaviorInstance.getElement | ( | ) |
Behavior element to apply behavior to.
Implements Dragengine.Scenery.ECBehaviorInstance.
int Dragengine.Scenery.DefaultECBehaviorInstance.getInstanceIndex | ( | ) |
Behavior instance index.
Implements Dragengine.Scenery.ECBehaviorInstance.
void Dragengine.Scenery.DefaultECBehaviorInstance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRPlayspace.Instance, Dragengine.Scenery.ECBehaviorVRHMD.Instance, Dragengine.Scenery.ECBehaviorVRHandPose.Instance, Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance, Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTriggered.Instance, Dragengine.Scenery.ECBehaviorTouchSensor.Instance, Dragengine.Scenery.ECBehaviorTouching.Instance, Dragengine.Scenery.ECBehaviorToggle.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorEvaluate.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorPlaySound.Instance, Dragengine.Scenery.ECBehaviorHearSounds.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorDayTimeSky.Instance, Dragengine.Scenery.ECBehaviorPlayerLookAtInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorPlayerInputTurn.Instance, Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance, Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance, Dragengine.Scenery.ECBehaviorPlayerInputCrouch.Instance, Dragengine.Scenery.ECBehaviorPlayerControllable.Instance, Dragengine.Scenery.ECBehaviorNetworkState.Instance, Dragengine.Scenery.ECBehaviorStashable.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance, Dragengine.Scenery.ECBehaviorOccupier.Instance, Dragengine.Scenery.ECBehaviorLookedAt.Instance, Dragengine.Scenery.ECBehaviorInteractPrompt.Instance, Dragengine.Scenery.ECBehaviorInteractionSpot.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorGrabber.Instance, Dragengine.Scenery.ECBehaviorControlDesktop.Instance, Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorStateMachine.Instance, Dragengine.Scenery.ECBehaviorShowMessage.Instance, Dragengine.Scenery.ECBehaviorShowElement.Instance, Dragengine.Scenery.ECBehaviorParticleEmitter.Instance, Dragengine.Scenery.ECBehaviorNavigationSpace.Instance, Dragengine.Scenery.ECBehaviorNavigationBlocker.Instance, Dragengine.Scenery.ECBehaviorLightDimmer.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorHitScan.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorEnvMapProbe.Instance, Dragengine.Scenery.ECBehaviorDecal.Instance, Dragengine.Scenery.ECBehaviorCustomColor.Instance, Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance, Dragengine.Scenery.ECBehaviorComponent.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorCamera.Instance, Dragengine.Scenery.ECBehaviorBillboard.Instance, Dragengine.Scenery.ECBehaviorAvoidedByActor.Instance, Dragengine.Scenery.ECBehaviorAnchorElement.Instance, Dragengine.Scenery.ECBehaviorRenderablePanel.Instance, Dragengine.Scenery.ECBehaviorRenderableLight.Instance, Dragengine.Scenery.ECBehaviorRenderableDesktop.Instance, Dragengine.Scenery.ECBehaviorRenderableCustomColor.Instance, Dragengine.Scenery.ECBehaviorRenderableCanvasBase.Instance, Dragengine.Scenery.ECBehaviorRenderableCanvas.Instance, Dragengine.Scenery.ECBehaviorRenderableCamera.Instance, Dragengine.Scenery.ECBehaviorDynamicSkin.Instance, Dragengine.Scenery.ECBehaviorAttachDynamicSkin.Instance, Dragengine.Scenery.ECBehaviorConversation.Instance, Dragengine.Scenery.ECBCTRRBindings.Instance, Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance, Dragengine.Scenery.ECBehaviorAttachToParent.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorAttachable.Instance, Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorStepAside.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorParameterTable.Instance, Dragengine.Scenery.ECBehaviorNavigator.Instance, Dragengine.Scenery.ECBehaviorLookAt.Instance, Dragengine.Scenery.ECBehaviorLocomotion.Instance, Dragengine.Scenery.ECBehaviorFootSteps.Instance, Dragengine.Scenery.ECBehaviorColliderAI.Instance, Dragengine.Scenery.ECBehaviorClearPath.Instance, Dragengine.Scenery.ECBehaviorBodyTilting.Instance, Dragengine.Scenery.ECBehaviorBehaviorTree.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorAlignActor.Instance, Dragengine.Scenery.ECBehaviorActorTransmission.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorIK.Instance, Dragengine.Scenery.ECBehaviorActorCutscene.ConversationController.Instance, Dragengine.Scenery.ECBehaviorActorAnimated.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, Dragengine.Gui.MainMenus.Interactive.IMMBehaviorHotSpot.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorColliderInteract.Instance.
DefaultECBehaviorInstance Dragengine.Scenery.DefaultECBehaviorInstance.new | ( | BehaviorElement | element | ) |
Create default composeable instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.postThink | ( | float | elapsed | ) |
Post thinking after physics processing is finished.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorLookAt.Instance, Dragengine.Scenery.ECBehaviorFootSteps.Instance, and Dragengine.Scenery.ECBehaviorActorAIAction.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read behavior instance from file.
The default implementation reads a single byte expecting value 0 indicating version 0. This allows subclasses to add persistency support by overwriting this method without super calling it.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTriggered.Instance, Dragengine.Scenery.ECBehaviorToggle.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorDayTimeSky.Instance, Dragengine.Scenery.ECBehaviorPlayerInputTurn.Instance, Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance, Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance, Dragengine.Scenery.ECBehaviorPlayerInputCrouch.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance, Dragengine.Scenery.ECBehaviorOccupier.Instance, Dragengine.Scenery.ECBehaviorLookedAt.Instance, Dragengine.Scenery.ECBehaviorInteractionSpot.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorStateMachine.Instance, Dragengine.Scenery.ECBehaviorShowElement.Instance, Dragengine.Scenery.ECBehaviorParticleEmitter.Instance, Dragengine.Scenery.ECBehaviorLightDimmer.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorCustomColor.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorConversation.Instance, Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorAttachable.Instance, Dragengine.Scenery.ECBehaviorStepAside.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorParameterTable.Instance, Dragengine.Scenery.ECBehaviorLocomotion.Instance, Dragengine.Scenery.ECBehaviorFootSteps.Instance, Dragengine.Scenery.ECBehaviorClearPath.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorAlignActor.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorIK.Instance, Dragengine.Scenery.ECBehaviorActorCutscene.ConversationController.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorColliderInteract.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.removeFromGameWorld | ( | ) |
Remove element from game world.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRHMD.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTouchSensor.Instance, Dragengine.Scenery.ECBehaviorTouching.Instance, Dragengine.Scenery.ECBehaviorToggle.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorEvaluate.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorHearSounds.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorGrabber.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorNavigationSpace.Instance, Dragengine.Scenery.ECBehaviorNavigationBlocker.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorEnvMapProbe.Instance, Dragengine.Scenery.ECBehaviorConvoCoordSystem.Instance, Dragengine.Scenery.ECBehaviorComponent.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorCamera.Instance, Dragengine.Scenery.ECBehaviorBillboard.Instance, Dragengine.Scenery.ECBehaviorAnchorElement.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorRideOn.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorNavigator.Instance, Dragengine.Scenery.ECBehaviorColliderAI.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, Dragengine.Gui.MainMenus.Interactive.IMMBehaviorHotSpot.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorColliderInteract.Instance.
bool Dragengine.Scenery.DefaultECBehaviorInstance.requiresEnterFrame | ( | ) |
Behavior instance requires enterFrame() to be called.
Implements Dragengine.Scenery.ECBehaviorInstance.
bool Dragengine.Scenery.DefaultECBehaviorInstance.requiresThink | ( | ) |
Behavior instance requires think() to be called.
Implements Dragengine.Scenery.ECBehaviorInstance.
|
protected |
Set if behavior instance requires enterFrame() to be called.
|
protected |
Set if behavior instance requires think() to be called.
void Dragengine.Scenery.DefaultECBehaviorInstance.stateChanged | ( | ) |
State changed (visble, touchable).
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorGrabSpot.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorComponent.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorBillboard.Instance, Dragengine.Scenery.ECBehaviorAttachSlot.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, and Dragengine.Scenery.ECBehaviorColliderAI.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.think | ( | float | elapsed | ) |
Think about what to do for the next frame update.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorAnnouncer.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorNStateLocomotion.Instance, Dragengine.Scenery.ECBehaviorLightDimmer.Instance, Dragengine.Scenery.ECBehaviorConversation.Instance, Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance, Dragengine.Scenery.ECBehaviorAnimated.Instance, Dragengine.Scenery.ECBehaviorClearPath.Instance, Dragengine.Scenery.ECBehaviorBehaviorTree.Instance, Dragengine.Scenery.ECBehaviorAvoidCollision.Instance, Dragengine.Scenery.ECBehaviorAlignActor.Instance, Dragengine.Scenery.ECBehaviorActorTransmission.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorMover.Instance, Dragengine.Scenery.ECBehaviorActorAIAction.Instance, and Dragengine.Gui.MainMenus.Interactive.IMMBehaviorHotSpot.Instance.
void Dragengine.Scenery.DefaultECBehaviorInstance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior instance to file.
The default implementation writes a single byte of value 0 indicating version 0. This allows subclasses to add persistency support by overwriting this method without super calling it.
Implements Dragengine.Scenery.ECBehaviorInstance.
Reimplemented in Dragengine.Scenery.ECBehaviorMoveOnRail.Instance, Dragengine.Scenery.ECBehaviorVRHandPointAt.Instance, Dragengine.Scenery.ECBehaviorVRHandLaserPointer.Instance, Dragengine.Scenery.ECBehaviorVRHandAction.Instance, Dragengine.Scenery.ECBehaviorTimer.Instance, Dragengine.Scenery.ECBehaviorSpeaker.Instance, Dragengine.Scenery.ECBehaviorSky.Instance, Dragengine.Scenery.ECBehaviorDayTimeSky.Instance, Dragengine.Scenery.ECBehaviorPlayerInputTurn.Instance, Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance, Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance, Dragengine.Scenery.ECBehaviorPlayerInputCrouch.Instance, Dragengine.Scenery.ECBehaviorInventory.Instance, Dragengine.Scenery.ECBehaviorLookedAt.Instance, Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance, Dragengine.Scenery.ECBehaviorOutline.Instance, Dragengine.Scenery.ECBehaviorStateMachine.Instance, Dragengine.Scenery.ECBehaviorShowElement.Instance, Dragengine.Scenery.ECBehaviorParticleEmitter.Instance, Dragengine.Scenery.ECBehaviorLightDimmer.Instance, Dragengine.Scenery.ECBehaviorLight.Instance, Dragengine.Scenery.ECBehaviorForceField.Instance, Dragengine.Scenery.ECBehaviorCustomColor.Instance, Dragengine.Scenery.ECBehaviorCollider.Instance, Dragengine.Scenery.ECBehaviorConversation.Instance, Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance, Dragengine.Scenery.ECBehaviorStepAside.Instance, Dragengine.Scenery.ECBehaviorProjectToGround.Instance, Dragengine.Scenery.ECBehaviorParameterTable.Instance, Dragengine.Scenery.ECBehaviorLocomotion.Instance, Dragengine.Scenery.ECBehaviorFootSteps.Instance, Dragengine.Scenery.ECBehaviorColliderAI.Instance, Dragengine.Scenery.ECBehaviorClearPath.Instance, Dragengine.Scenery.ECBehaviorBehaviorTree.Instance, Dragengine.Scenery.ECBehaviorActorTransmission.Instance, Dragengine.Scenery.ECBehaviorActorMoverUnstuck.Instance, Dragengine.Scenery.ECBehaviorActorCutscene.ConversationController.Instance, Dragengine.Scenery.ECBehaviorActorAnimated.Instance, and Dragengine.Scenery.ECBehaviorActorAIAction.Instance.