Class Index | File Index

Classes


Class R.components.logic.behaviors.Wander


Extends R.components.logic.behaviors.BaseBehavior.
The wander behavior for the vehicle. Causes the vehicle to randomly move from left to right.
Defined in: wander.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class R.components.Base:
TYPE_COLLIDER, TYPE_INPUT, TYPE_LOGIC, TYPE_RENDERING, TYPE_TRANSFORM
Method Summary
Method Attributes Method Name and Description
 
execute(renderContext, time, dt)
This method is called by the game object to run the component, updating its state.
Methods borrowed from class R.components.logic.behaviors.BaseBehavior:
getTransformComponent, setTransformComponent
Methods borrowed from class R.components.Logic:
getClassName
Methods borrowed from class R.components.Base:
getGameObject, getHostObject, getPriority, getType, getTypeString, release, setGameObject, setHostObject, setPriority
Methods borrowed from class R.engine.BaseObject:
addEvent, addEvents, destroy, getElement, jQ, removeEvent, setElement, triggerEvent, update
Methods borrowed from class R.engine.PooledObject:
clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.components.logic.behaviors.Wander(amount, max)
Parameters:
amount
The amount to wander in either direction
max
The maximum amount of wander that can be applied in either direction
Method Detail
execute(renderContext, time, dt)
This method is called by the game object to run the component, updating its state.
Parameters:
renderContext
{R.rendercontexts.AbstractRenderContext} The context the component will render within.
time
{Number} The global engine time
dt
{Number} The delta between the world time and the last time the world was updated in milliseconds.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:16 GMT-0400 (EDT)