RuleBook

Rulebook is the place where you define the object templates that are available to the arenas that share the rulebook.
You can also create objects in the rulebook that will be replicated to all the arenas. For example if you want your arenas to share the same user interface you can create it in the rulebook.
There is a final flag in attributes, interactions and objects that you can set. If you set this flag to 'true' it means that that attribute, representation, etc., can not be erased although its value can be changed.

Method Summary
 niladdObject (Object original)
 ObjectcopyObject (Object original)
 ObjectcopyObject (Object original, string name)
 representationcopyRepresentation (representation original)
 representationcopyRepresentation (representation original, string name)
 BillBoardcreateBillboard (string name)
 EffectcreateEffect (string name)
 LightcreateLight (string name)
 ModelcreateModel (string name, MediaItem mediaItem)
 ObjectcreateObject (string templateName, string name, string description)
 overlaycreateOverlay (string name, number type, MediaItem mediaitem, number x, number y, number sx, number sy)
 PlanecreatePlane (string name)
 RivercreateRiver (string name)
 RoadcreateRoad (string name)
 SoundcreateSound (string name, MediaItem mediaitem)
 StaticFloracreateStaticFlora (string name, MediaItem densityMap)
 <type>,...,<type>exec (string name, string args)
 string, InterModelgetAIMovementOnStartListener ()
 string, InterModelgetAIMovementOnStopListener ()
 stringgetAttribute (string name)
 hastable{string,string}getAttributes ()
 BillBoardgetBillboard (string name)
 array{BillBoard}getBillboards ()
 stringgetDescription ()
 EffectgetEffect (string name)
 array{Effect}getEffects ()
 stringgetID ()
 LightgetLight (string name)
 array{Light}getLights ()
 ModelgetModel (string name)
 array{Model}getModels ()
 Object, string, InterModel, boolean, stringgetMouseButtonClickedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonDoubleClickedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonPressedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseButtonReleasedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseMovedListener ()
 Object, string, InterModel, boolean, stringgetMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 Object, string, InterModel, boolean, stringgetMouseWheelMovedListener (number mousekey)
 Object, string, InterModel, boolean, stringgetMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 stringgetName ()
 ObjectgetObject (string objectID)
 array{Object}getObjects ()
 array{Object}getObjectsByName (string Name)
 array{Object}getObjectsByTemplate (string templateName)
 ObjectgetObjectTemplate (string ID)
 ObjectgetObjectTemplateByName (string name)
 array{Object}getObjectTemplates ()
 stringgetOnLoadListener ()
 OverlaygetOverlay (string name)
 array{}getOverlays ()
 PlanegetPlane (string name)
 array{Plane}getPlanes ()
 PresencegetPresenceTemplate (string ID)
 PresencegetPresenceTemplateByName (string name)
 array{Presence}getPresenceTemplates ()
 Object, string, InterModel, boolean, stringgetRayHitListener ()
 representationgetRepresentation (string name, number type)
 array{}getRepresentations ()
 RivergetRiver (string name)
 array{River}getRivers ()
 RoadgetRoad (string name)
 array{Road}getRoads ()
 SoundgetSound (string name)
 array{Sound}getSounds ()
 StaticFloragetStaticFlora (string name)
 array{StaticFlora}getStaticFloras ()
 string, number, numbergetTimerListener (number codeID, string objectID)
 numbergetType ()
 booleanhasAIMovementOnStartListener ()
 booleanhasAIMovementOnStopListener ()
 booleanhasAttribute (string name)
 booleanhasModel (string name)
 booleanhasMouseButtonClickedListener (number mousekey)
 booleanhasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonDoubleClickedListener (number mousekey)
 booleanhasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonPressedListener (number mousekey)
 booleanhasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseButtonReleasedListener (number mousekey)
 booleanhasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseMovedListener ()
 booleanhasMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 booleanhasMouseWheelMovedListener (number mousekey)
 booleanhasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 booleanhasObject (string objectID)
 booleanhasObjectTemplate (string ID)
 booleanhasObjectTemplateByName (string name)
 booleanhasOnLoadListener ()
 booleanhasPresenceTemplate (string ID)
 booleanhasPresenceTemplateByName (string name)
 booleanhasRayHitListener ()
 booleanhasRiver (string name)
 booleanhasRoad (string name)
 booleanhasStaticFlora (string name)
 booleanhasTimerListener (unsigned char)
 booleanisPersistent ()
 booleanisVisible ()
 nilprint ()
 nilremoveAIMovementOnStartListener ()
 nilremoveAIMovementOnStopListener ()
 nilremoveAllAttributes ()
 nilremoveAllBillboards ()
 nilremoveAllEffects ()
 nilremoveAllLights ()
 nilremoveAllModels ()
 nilremoveAllObjects ()
 nilremoveAllObjectsByName (string name)
 nilremoveAllObjectsByTemplate (string templateName)
 nilremoveAllOverlays ()
 nilremoveAllPlanes ()
 nilremoveAllRepresentations ()
 nilremoveAllRivers ()
 nilremoveAllRoads ()
 nilremoveAllSounds ()
 nilremoveAllStaticFloras ()
 nilremoveAttribute (string name)
 nilremoveBillboard (string name)
 nilremoveEffect (string name)
 nilremoveLight (string name)
 nilremoveModel (string name)
 nilremoveMouseButtonClickedListener (number mousekey)
 nilremoveMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonDoubleClickedListener (number mousekey)
 nilremoveMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonPressedListener (number mousekey)
 nilremoveMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseButtonReleasedListener (number mousekey)
 nilremoveMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseMovedListener ()
 nilremoveMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
 nilremoveMouseWheelMovedListener (number mousekey)
 nilremoveMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
 nilremoveObject (string objectID)
 nilremoveOnLoadListener ()
 nilremoveOverlay (string name)
 nilremovePlane (string name)
 nilremoveRayHitListener ()
 nilremoveRepresentation (string name, number type)
 nilremoveRiver (string name)
 nilremoveRoad (string name)
 nilremoveSound (string name)
 nilremoveStaticFlora (string name)
 nilremoveTimerListener (number codeID)
 nilsetAIMovementOnStartListener (string name, InterModel interactionModel)
 nilsetAIMovementOnStopListener (string name, InterModel interactionModel)
 nilsetAttribute (string name, string value)
 nilsetDescription (string description)
 nilsetMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseMovedListener (Object target, string name, InterModel interactionModel)
 nilsetMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel)
 nilsetMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
 nilsetName (string name)
 nilsetOnLoadListener (string name)
 nilsetPersistent (boolean isPersistent)
 nilsetRayHitListener (Object target, string name, InterModel interactionModel)
 nilsetRayHitListener (Object target, string name, InterModel interactionModel, boolean global, string channel)
 nilsetTimerListener (number codeID, Object target, string name, InterModel interactionModel, number type, number deltaT)
 nilsetVisible (boolean visible)

Method Detail

addObject

nil addObject (Object original)
Adds an Object to this RuleBook.

Parameters:
Object original - Object to add.


copyObject

Object copyObject (Object original)
Clones an object in this RuleBook.

Parameters:
Object original - Object to clone.

Returns:
Object - The cloned object.


copyObject

Object copyObject (Object original, string name)
Clones an object in this RuleBook with the specified name.

Parameters:
Object original - Object to clone.
string name - Name of the cloned object.

Returns:
Object - The cloned object.


copyRepresentation

representation copyRepresentation (representation original)
Clones a representation in the arena.

Parameters:
representation original - Representation to clone.

Returns:
representation - The cloned representation.


copyRepresentation

representation copyRepresentation (representation original, string name)
Clones a representation in the arena with the specified name.

Parameters:
representation original - Representation to clone.
string name - Name of the cloned representation.

Returns:
representation - The cloned representation.


createBillboard

BillBoard createBillboard (string name)
Creates a billboard in the RuleBook with the specified name. The other values will be set to default.

Parameters:
string name - Name of the Billbloard

Returns:
BillBoard - The new billboard.


createEffect

Effect createEffect (string name)
Creates an effect in the RuleBook with the specified name. The other values will be set to default.

Parameters:
string name - Name that identifies the effect.

Returns:
Effect - New effect with the specified name.


createLight

Light createLight (string name)
Creates a light in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the light.

Returns:
Light - New light with the specified name.


createModel

Model createModel (string name, MediaItem mediaItem)
Creates a model in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the model.
MediaItem mediaItem - MediaItem of the mesh.

Returns:
Model - New model with the specified name.


createObject

Object createObject (string templateName, string name, string description)
Creates an object in this RuleBook.

Parameters:
string templateName - Name of the object template.
string name - Name of the object.
string description - Description of the object.

Returns:
Object - The new object.


createOverlay

overlay createOverlay (string name, number type, MediaItem mediaitem, number x, number y, number sx, number sy)
Adds an overlay to the RuleBook.

Parameters:
string name - Name of the RuleBook
number type - Type of the Overlay: OVT_WINDOW, OVT_BUTTON, OVT_CHECK_BOX, OVT_COMBO_BOX, OVT_EDIT_BOX, OVT_MULTILINE_EDIT_BOX, OVT_PROGRESS_BAR, OVT_SPINNER, OVT_RADIO_BUTTON, OVT_SCROLL_BAR_VERT, OVT_SCROLL_BAR_HORZ, OVT_SLIDER_BAR, OVT_STATIC_TEXT, OVT_STATIC_IMAGE, OVT_TAB_PANE, OVT_LIST_BOX, OVT_MENU_BAR, OVT_MENU_ITEM, OVT_MENU_POPUP, OVT_MULTICOLUMN_LIST, OVT_CODE_EDIT_BOX, OVT_SCROLL_PANE, OVT_TOGGLE_BUTTON or OVT_TREE.
MediaItem mediaitem - Media Item of the look n' feel to be applied to the RuleBook.
number x - X coordinate of the position of the RuleBook.
number y - Y coordinate of the position of the RuleBook.
number sx - Width of the RuleBook.
number sy - Height of the RuleBook.

Returns:
overlay - The new overlay.


createPlane

Plane createPlane (string name)
Creates a plane in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the plane.

Returns:
Plane - plane New plane with the specified name.


createRiver

River createRiver (string name)
Creates a river in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the river.

Returns:
River - river New river with the specified name.


createRoad

Road createRoad (string name)
Creates a road in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the road.

Returns:
Road - road New road with the specified name.


createSound

Sound createSound (string name, MediaItem mediaitem)
Creates a sound in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the sound.
MediaItem mediaitem - Media Item of the sound.

Returns:
Sound - New sound with the specified name.


createStaticFlora

StaticFlora createStaticFlora (string name, MediaItem densityMap)
Creates a static flora in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the static flora.
MediaItem densityMap - MediaItem of the density map to be used

Returns:
StaticFlora - New static flora with the specified name.


exec

<type>,...,<type> exec (string name, string args)
Executes the specified interaction on the RuleBook.

Parameters:
string name - Name of the interaction.
string args - Arguments of the interaction. This function can have zero or more arguments.

Returns:
<type>,...,<type> - Return values.


getAIMovementOnStartListener

string, InterModel getAIMovementOnStartListener ()
Returns the listener information of the 'pathfind started' event of the RuleBook.

Returns:
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.


getAIMovementOnStopListener

string, InterModel getAIMovementOnStopListener ()
Returns the listener information of the 'pathfind stopped' event of the RuleBook.

Returns:
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.


getAttribute

string getAttribute (string name)
Returns the value of the attribute of the specified name.

Parameters:
string name - Name of the attribute.

Returns:
string - Value of the attribute.


getAttributes

hastable{string,string} getAttributes ()
Returns an hashtable containg pairs of attribute name and attribute value.

Returns:
hastable{string,string} - Hashtable containg pairs of attribute name and attribute value.


getBillboard

BillBoard getBillboard (string name)
Returns the billboard with name 'name'.

Parameters:
string name - Name of the billboard you are seaching for.

Returns:
BillBoard - Billboard you are searching for.


getBillboards

array{BillBoard} getBillboards ()
Returns all billboards available in the RuleBook.

Returns:
array{BillBoard} - Billboards available in the RuleBook.


getDescription

string getDescription ()
Returns the description of the RuleBook.

Returns:
string - Description if the RuleBook.


getEffect

Effect getEffect (string name)
Returns the material with name 'name'.

Parameters:
string name - Name of the effect you are searching for.

Returns:
Effect - The effect you are searching for.


getEffects

array{Effect} getEffects ()
Returns the effects available in the RuleBook.

Returns:
array{Effect} - Effects available in the RuleBook.


getID

string getID ()
Returns the object ID.

Returns:
string - Object ID.


getLight

Light getLight (string name)
Returns a light in the RuleBook with the specified name.

Parameters:
string name - Name that identifies the light.

Returns:
Light - Light with the specified name.


getLights

array{Light} getLights ()
Returns an array containig the lights of the RuleBook.

Returns:
array{Light} - Array containig the lights of the object.


getModel

Model getModel (string name)
Returns the model with name 'name'

Parameters:
string name - Name of the model you want to get.

Returns:
Model - The model you are searching for.


getModels

array{Model} getModels ()
Returns an array of models available in the RuleBook.

Returns:
array{Model} - Models of the RuleBook


getMouseButtonClickedListener

Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey)
Returns the 'mouse button clicked' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonClickedListener

Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button clicked' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonDoubleClickedListener

Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey)
Returns the 'mouse button double clicked' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonDoubleClickedListener

Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button double clicked' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonPressedListener

Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey)
Returns the 'mouse button pressed' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonPressedListener

Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button pressed' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonReleasedListener

Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey)
Returns the 'mouse button released' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
Object - The object that contains the interaction that will be executed.
string - name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseButtonReleasedListener

Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse button released' listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseMovedListener

Object, string, InterModel, boolean, string getMouseMovedListener ()
Returns the 'mouse moved' listener of the RuleBook.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseMovedListener

Object, string, InterModel, boolean, string getMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse moved' listener of the RuleBook.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseWheelMovedListener

Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey)
Returns the 'mouse wheel moved' listener of the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getMouseWheelMovedListener

Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns the 'mouse wheel moved' listener of the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getName

string getName ()
Returns the name of the RuleBook.

Returns:
string - Name of the RuleBook.


getObject

Object getObject (string objectID)
Returns the object with the specified ID from this RuleBook.

Parameters:
string objectID - Identifier of the object.

Returns:
Object - Object with the specified ID.


getObjects

array{Object} getObjects ()
Returns an array containing all objects in this RuleBook.

Returns:
array{Object} - Array containing all objects in this RuleBook.


getObjectsByName

array{Object} getObjectsByName (string Name)
Returns an array containg all objects in this RuleBook with the specified name.

Parameters:
string Name - of the objects to return.

Returns:
array{Object} - Array containg all objects in this RuleBook with the specified name.


getObjectsByTemplate

array{Object} getObjectsByTemplate (string templateName)
Returns an array containg all objects in this RuleBook that follow the specified template.

Parameters:
string templateName - Name of the template.

Returns:
array{Object} - Array containg all objects in this RuleBook that follow the specified template.


getObjectTemplate

Object getObjectTemplate (string ID)
Returns the object with ID 'ID'.

Parameters:
string ID - ID of the object template to be returned.

Returns:
Object - Object with ID 'ID'.


getObjectTemplateByName

Object getObjectTemplateByName (string name)
Returns the object with name 'name'.

Parameters:
string name - Name of the object template to be returned.

Returns:
Object - Object with name 'name'.


getObjectTemplates

array{Object} getObjectTemplates ()
Returns the object templates availables in the rulebook.

Returns:
array{Object} - Object templates of the rulebook.


getOnLoadListener

string getOnLoadListener ()
Returns the name of the interaction to be called upon a 'on load' event.

Returns:
string - Interaction to be called upon a 'on load' event.


getOverlay

Overlay getOverlay (string name)
Returns an Overlay identified by name contained in this RuleBook.

Parameters:
string name - Name of the Overlay.

Returns:
Overlay - The child Overlay identified by name.


getOverlays

array{} getOverlays ()
Returns the Overlays contained in this RuleBook.

Returns:
array{} - Overlays contained in this RuleBook.


getPlane

Plane getPlane (string name)
Returns the plane with name 'name'

Parameters:
string name - Name of the plane you want to get.

Returns:
Plane - The plane you are searching for.


getPlanes

array{Plane} getPlanes ()
Returns all planes of the RuleBook.

Returns:
array{Plane} - Planes of the RuleBook.


getPresenceTemplate

Presence getPresenceTemplate (string ID)
Returns the presence template with ID 'ID'.

Parameters:
string ID - ID of the presence template to be returned.

Returns:
Presence - Presence template with ID 'ID'.


getPresenceTemplateByName

Presence getPresenceTemplateByName (string name)
Returns the presence template with name 'name'.

Parameters:
string name - Name of the presence template to be returned.

Returns:
Presence - Presence template with name 'name'.


getPresenceTemplates

array{Presence} getPresenceTemplates ()
Returns the presence templates availables in the rulebook.

Returns:
array{Presence} - Presence templates of the rulebook.


getRayHitListener

Object, string, InterModel, boolean, string getRayHitListener ()
Returns the 'mouse entered' listener of the RuleBook.

Returns:
Object - The object that contains the interaction that will be executed.
string - Name of the interaction.
InterModel - Arguments of the interaction that will be executed when this listener is activated.
boolean - 'True' if this listener is executed globally, 'false' if it is executed only locally.
string - The channel of the listener.


getRepresentation

representation getRepresentation (string name, number type)
Returns the representation with the specified name and type.

Parameters:
string name - Name of the representation.
number type - Type of the representation.

Returns:
representation - The representation with the specified name and type.


getRepresentations

array{} getRepresentations ()
Returns an array containing all representations in the arena.

Returns:
array{} - Array containing all representations in the arena.


getRiver

River getRiver (string name)
Returns the river with name 'name'

Parameters:
string name - Name of the river you want to get.

Returns:
River - The river you are searching for.


getRivers

array{River} getRivers ()
Returns all rivers of the RuleBook.

Returns:
array{River} - Rivers of the RuleBook.


getRoad

Road getRoad (string name)
Returns the road with name 'name'

Parameters:
string name - Name of the road you want to get.

Returns:
Road - The road you are searching for.


getRoads

array{Road} getRoads ()
Returns all roads of the RuleBook.

Returns:
array{Road} - Roads of the RuleBook.


getSound

Sound getSound (string name)
Returns the sound with name 'name'

Parameters:
string name - Name of the sound you want to get.

Returns:
Sound - Sound you want to search for.


getSounds

array{Sound} getSounds ()
Returns the sounds available in the RuleBook.

Returns:
array{Sound} - Sounds of the RuleBook .


getStaticFlora

StaticFlora getStaticFlora (string name)
Returns the static flora with name 'name'

Parameters:
string name - Name of the static flora you want to get.

Returns:
StaticFlora - The static flora you are searching for.


getStaticFloras

array{StaticFlora} getStaticFloras ()
Returns all static floras of the RuleBook.

Returns:
array{StaticFlora} - Static Floras of the RuleBook.


getTimerListener

string, number, number getTimerListener (number codeID, string objectID)
Gets a 'timer' listener of the RuleBook.

Parameters:
number codeID - Identifier of the 'timer' listener.
string objectID - Object ID of the object that contains the interaction that will be executed.

Returns:
string - Name of the interaction.
number - Type of timer: TT_ONE_TIME_EVENT or TT_CYCLE_EVENT.
number - Time interval between 'timer' events


getType

number getType ()
Returns the type of the object.

Returns:
number - The object type: OT_OBJECT, OT_PRESENCE, ARENA, RULEBOOK, OBJECT_TEMPLATE or PRESENCE_TEMPLATE.


hasAIMovementOnStartListener

boolean hasAIMovementOnStartListener ()
Returns 'true' if the RuleBook has a 'pathfind started' Listener, otherwise 'false'.

Returns:
boolean - 'True' if the RuleBook has a 'pathfind started' Listener, otherwise 'false'.


hasAIMovementOnStopListener

boolean hasAIMovementOnStopListener ()
Returns 'true' if the RuleBook has a 'pathfind stopped' Listener, otherwise 'false'.

Returns:
boolean - 'True' if the RuleBook has a 'pathfind stopped' Listener, otherwise 'false'.


hasAttribute

boolean hasAttribute (string name)
'true' if the RuleBook has an attribute with the specified name, otherwise 'false'.

Parameters:
string name - Name of the attribute

Returns:
boolean - 'True' if the RuleBook has an attribute with the specified name, otherwise 'false'.


hasModel

boolean hasModel (string name)
Checks if the RuleBook has a model with name 'name'

Parameters:
string name - Name of the model you want to check.

Returns:
boolean - 'True' if the model is found, 'false' otherwise.


hasMouseButtonClickedListener

boolean hasMouseButtonClickedListener (number mousekey)
Returns 'true' if the RuleBook has a listener for the 'button clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button clicked' event, otherwise 'false'.


hasMouseButtonClickedListener

boolean hasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'button clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button clicked' event, otherwise 'false'.


hasMouseButtonDoubleClickedListener

boolean hasMouseButtonDoubleClickedListener (number mousekey)
Returns 'true' if the RuleBook has a listener for the 'button double clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button double clicked' event, otherwise 'false'.


hasMouseButtonDoubleClickedListener

boolean hasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'button double clicked' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button double clicked' event, otherwise 'false'.


hasMouseButtonPressedListener

boolean hasMouseButtonPressedListener (number mousekey)
Returns 'true' if the RuleBook has a listener for the 'button pressed' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button pressed' event, otherwise 'false'.


hasMouseButtonPressedListener

boolean hasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'button pressed' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button pressed' event, otherwise 'false'.


hasMouseButtonReleasedListener

boolean hasMouseButtonReleasedListener (number mousekey)
Returns 'true' if the RuleBook has a listener for the 'button released' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button released' event, otherwise 'false'.


hasMouseButtonReleasedListener

boolean hasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'button released' event, otherwise 'false'.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'button released' event, otherwise 'false'.


hasMouseMovedListener

boolean hasMouseMovedListener ()
Returns 'true' if the RuleBook has a listener for the 'mouse moved' event, otherwise 'false'.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'mouse moved' event, otherwise 'false'.


hasMouseMovedListener

boolean hasMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'mouse moved' event, otherwise 'false'.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'mouse moved' event, otherwise 'false'.


hasMouseWheelMovedListener

boolean hasMouseWheelMovedListener (number mousekey)
Returns 'true' if the RuleBook has a listener for the 'mouse wheel moved' event, otherwise 'false'.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'mouse wheel moved' event, otherwise 'false'.


hasMouseWheelMovedListener

boolean hasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Returns 'true' if the RuleBook has a listener for the 'mouse wheel moved' event, otherwise 'false'.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'mouse wheel moved' event, otherwise 'false'.


hasObject

boolean hasObject (string objectID)
Returns 'true' if this object contains the object with the specified ID, otherwise 'false'.

Parameters:
string objectID - Identifier of the object.

Returns:
boolean - 'True' if this object contains the object with the specified ID, otherwise 'false'.


hasObjectTemplate

boolean hasObjectTemplate (string ID)
Returns 'true' if the object template is found, otherwise 'false'.

Parameters:
string ID - ID of the object template to be searched.

Returns:
boolean - 'True' if the object template is found, otherwise 'false'.


hasObjectTemplateByName

boolean hasObjectTemplateByName (string name)
Returns 'true' if the object template with name 'name' is found, otherwise 'false'.

Parameters:
string name - Name of the object template to be searched.

Returns:
boolean - 'True' if the object template is found, otherwise 'false'.


hasOnLoadListener

boolean hasOnLoadListener ()
Returns 'true' if the RuleBook has a listener for the 'on load' event, otherwise 'false'.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'on load' event, otherwise 'false'.


hasPresenceTemplate

boolean hasPresenceTemplate (string ID)
Returns 'true' if the presence template is found, otherwise 'false'.

Parameters:
string ID - ID of the presence template to be searched.

Returns:
boolean - 'True' if the presence template is found, otherwise 'false'.


hasPresenceTemplateByName

boolean hasPresenceTemplateByName (string name)
Returns 'true' if the presence template with name 'name' is found, otherwise 'false'.

Parameters:
string name - Name of the presence template to be searched.

Returns:
boolean - 'True' if the presence template is found, otherwise 'false'.


hasRayHitListener

boolean hasRayHitListener ()
Returns 'true' if the RuleBook has a listener for the 'mouse entered' event, otherwise 'false'.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'mouse entered' event, otherwise 'false'.


hasRiver

boolean hasRiver (string name)
Checks if the RuleBook has a river with name 'name'

Parameters:
string name - Name of the river you want to check.

Returns:
boolean - 'True' if the river is found, 'false' otherwise.


hasRoad

boolean hasRoad (string name)
Checks if the RuleBook has a road with name 'name'

Parameters:
string name - Name of the road you want to check.

Returns:
boolean - 'True' if the road is found, 'false' otherwise.


hasStaticFlora

boolean hasStaticFlora (string name)
Checks if the RuleBook has a static flora with name 'name'

Parameters:
string name - Name of the static flora you want to check.

Returns:
boolean - 'True' if the static flora is found, 'false' otherwise.


hasTimerListener

boolean hasTimerListener (unsigned char)
Returns 'true' if the RuleBook has a listener for the 'timer' event, otherwise 'false'.

Parameters:
unsigned char - codeID Identifier of the 'timer' listener.

Returns:
boolean - 'True' if the RuleBook has a listener for the 'timer' event, otherwise 'false'.


isPersistent

boolean isPersistent ()
Returns 'true' if the object is set as persistent, otherwise 'false'.

Returns:
boolean - 'True' if the object is set as persistent, otherwise 'false'.


isVisible

boolean isVisible ()
Return 'true' if the object is set as visible, otherwise 'false'.

Returns:
boolean - 'True' if the object is set as visible, otherwise 'false'.


print

nil print ()
Prints the rulebook information to the console.


removeAIMovementOnStartListener

nil removeAIMovementOnStartListener ()
Removes the listener from the RuleBook for the 'pathfind start' event.


removeAIMovementOnStopListener

nil removeAIMovementOnStopListener ()
Removes the listener from the RuleBook for the 'pathfind stopped' event.


removeAllAttributes

nil removeAllAttributes ()
Removes all attributes of the RuleBook.


removeAllBillboards

nil removeAllBillboards ()
Removes all billboards of the RuleBook.


removeAllEffects

nil removeAllEffects ()
Removes all effects of the RuleBook.


removeAllLights

nil removeAllLights ()
Removes all lights from the RuleBook.


removeAllModels

nil removeAllModels ()
Removes all models of the RuleBook.


removeAllObjects

nil removeAllObjects ()
Removes all objects from this RuleBook.


removeAllObjectsByName

nil removeAllObjectsByName (string name)
Removes all objects with the specified name from this RuleBook.

Parameters:
string name - Name of the objects to remove.


removeAllObjectsByTemplate

nil removeAllObjectsByTemplate (string templateName)
Removes all objects that follow the specified template from this RuleBook.

Parameters:
string templateName - Name of the template.


removeAllOverlays

nil removeAllOverlays ()
Removes all Overlays contained in this RuleBook.


removeAllPlanes

nil removeAllPlanes ()
Removes all planes of the RuleBook.


removeAllRepresentations

nil removeAllRepresentations ()
Removes all representations from the RuleBook.


removeAllRivers

nil removeAllRivers ()
Removes all rivers of the RuleBook.


removeAllRoads

nil removeAllRoads ()
Removes all roads of the RuleBook.


removeAllSounds

nil removeAllSounds ()
Removes all sounds available in RuleBook.


removeAllStaticFloras

nil removeAllStaticFloras ()
Removes all static floras of the RuleBook.


removeAttribute

nil removeAttribute (string name)
Removes an attribute of the specified name.

Parameters:
string name - Name of the attribute.


removeBillboard

nil removeBillboard (string name)
Removes the billboard with name 'name'

Parameters:
string name - Name of the billboard you want to remove.


removeEffect

nil removeEffect (string name)
Returns the effect with name 'name'

Parameters:
string name - Name of the effect you want to remove.


removeLight

nil removeLight (string name)
Removes the designated light from the RuleBook.

Parameters:
string name - Name of the light to remove.


removeModel

nil removeModel (string name)
Removes the model with name 'name'

Parameters:
string name - Name of the model you want to remove.


removeMouseButtonClickedListener

nil removeMouseButtonClickedListener (number mousekey)
Removes the 'mouse button clicked' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonClickedListener

nil removeMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button clicked' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonDoubleClickedListener

nil removeMouseButtonDoubleClickedListener (number mousekey)
Removes the 'mouse button double clicked' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonDoubleClickedListener

nil removeMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button double clicked' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonPressedListener

nil removeMouseButtonPressedListener (number mousekey)
Removes the 'mouse button pressed' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonPressedListener

nil removeMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button pressed' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseButtonReleasedListener

nil removeMouseButtonReleasedListener (number mousekey)
Removes the 'mouse button released' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.


removeMouseButtonReleasedListener

nil removeMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse button released' event listener of the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseMovedListener

nil removeMouseMovedListener ()
Removes the 'mouse moved' event listener of the RuleBook.


removeMouseMovedListener

nil removeMouseMovedListener (boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse moved' event listener of the RuleBook.

Parameters:
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeMouseWheelMovedListener

nil removeMouseWheelMovedListener (number mousekey)
Removes the 'mouse wheel moved' event listener of the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.


removeMouseWheelMovedListener

nil removeMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)
Removes the 'mouse wheel moved' event listener of the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.


removeObject

nil removeObject (string objectID)
Removes an object from this RuleBook.

Parameters:
string objectID - Identifier of the object to remove.


removeOnLoadListener

nil removeOnLoadListener ()
Removes the specified 'on load' listener.


removeOverlay

nil removeOverlay (string name)
Removes an Overlay identified by name contained in this RuleBook.

Parameters:
string name - Name of the Overlay.


removePlane

nil removePlane (string name)
Removes the plane with name 'name'

Parameters:
string name - Name of the plane you want to remove.


removeRayHitListener

nil removeRayHitListener ()
Removes the 'mouse entered' event listener of the RuleBook.


removeRepresentation

nil removeRepresentation (string name, number type)
Removes the representation with the specified name and type from the RuleBook.

Parameters:
string name - Name of the representation.
number type - Type of the representation.


removeRiver

nil removeRiver (string name)
Removes the river with name 'name'

Parameters:
string name - Name of the river you want to remove.


removeRoad

nil removeRoad (string name)
Removes the road with name 'name'

Parameters:
string name - Name of the road you want to remove.


removeSound

nil removeSound (string name)
Removes the sound with name 'name'.

Parameters:
string name - Name of the sound you want to remove.


removeStaticFlora

nil removeStaticFlora (string name)
Removes the static flora with name 'name'

Parameters:
string name - Name of the static flora you want to remove.


removeTimerListener

nil removeTimerListener (number codeID)
Removes a the specified 'timer' listener .

Parameters:
number codeID - Identifier of the 'timer' listener.


setAIMovementOnStartListener

nil setAIMovementOnStartListener (string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'pathfind started' event on a model contained in this RuleBook.

Parameters:
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setAIMovementOnStopListener

nil setAIMovementOnStopListener (string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'pathfind stopped' event on a model contained in this RuleBook.

Parameters:
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setAttribute

nil setAttribute (string name, string value)
Sets an attribute in the RuleBook. Creates the attribute if there is none with the same name, otherwise it updates its value.

Parameters:
string name - Name of the attribute.
string value - Value of the attribute.


setDescription

nil setDescription (string description)
Sets the description of the RuleBook.

Parameters:
string description - Description of the RuleBook.


setMouseButtonDoubleClickedListener

nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button double clicked' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonDoubleClickedListener

nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button double clicked' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseButtonPressedListener

nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button pressed' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonPressedListener

nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button pressed' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseButtonReleasedListener

nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse button released' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseButtonReleasedListener

nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse button released' event on the RuleBook.

Parameters:
number mousekey - Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseMovedListener

nil setMouseMovedListener (Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse move' event on the RuleBook.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseMovedListener

nil setMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse move' event on the RuleBook.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setMouseWheelMovedListener

nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a 'mouse wheel moved' event on the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setMouseWheelMovedListener

nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)
Sets a listener to be invoked upon a 'mouse wheel moved' event on the RuleBook.

Parameters:
number mousekey - Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean ctrl - Whether the key combination includes the 'ctrl' modifier key.
boolean alt - Whether the key combination includes the 'alt' modifier key.
boolean shift - Whether the key combination includes the 'shift' modifier key.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setName

nil setName (string name)
Sets the name of the RuleBook.

Parameters:
string name - The name of the RuleBook.


setOnLoadListener

nil setOnLoadListener (string name)
Sets a listener to execute a specified interaction in this RuleBook upon an 'on load' event.

Parameters:
string name - Name of the interaction to be called.


setPersistent

nil setPersistent (boolean isPersistent)
Sets the persistency of the RuleBook.

Parameters:
boolean isPersistent - Whether the RuleBook is persistent or not.


setRayHitListener

nil setRayHitListener (Object target, string name, InterModel interactionModel)
Sets a listener to be invoked upon a physics 'ray hit' event on the RuleBook.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.


setRayHitListener

nil setRayHitListener (Object target, string name, InterModel interactionModel, boolean global, string channel)
Sets a listener to be invoked upon a physics 'ray hit' event on the RuleBook.

Parameters:
Object target - The object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
boolean global - 'true' if this listener is executed globally, 'false' if it is executed only locally.
string channel - The channel of the listener.


setTimerListener

nil setTimerListener (number codeID, Object target, string name, InterModel interactionModel, number type, number deltaT)
Sets a listener to be invoked upon a 'timer' event on the RuleBook.

Parameters:
number codeID - Identifier of the 'timer' listener.
Object target - Object that contains the interaction that will be executed.
string name - Name of the interaction.
InterModel interactionModel - Arguments of the interaction that will be executed when this listener is activated.
number type - Type of timer: TT_ONE_TIME_EVENT or TT_CYCLE_EVENT.
number deltaT - Time interval between 'timer' events (seconds).


setVisible

nil setVisible (boolean visible)
Sets the visibility of the RuleBook.

Parameters:
boolean visible - Whether the RuleBook is visible or invisible.