Class GameObject
In: lib/core/gameobject.rb
Parent: Root
GameObject
Root
TopLevel

The GameObject class is no longer the mother of all objects.

Methods

Public Class methods

Create a new Object

name
Every object needs a name
owner
The owner id of this object
location
The object id containing this object or nil.
return
A handle to the new Object

Public Instance methods

Add an object to the contents of this object

oid
The object id to add

Add a trigger script to this object

s
The script to add

Finds all the characters contained in this object except the passed character.

exempt
The character id exempted from the list.
return
Handle to a list of the Character objects.

Deletes an object from the contents of this object

oid
The object id to delete

Deletes a trigger script from this object

event
The trigger event type to delete

Event :describe

e
The event
return
Undefined

Event :drop

e
The event
return
Undefined

Event :get

e
The event
return
Undefined

Returns the contents of the object

return
An array of object ids

Returns a specific trigger script from the object

event
The trigger event type to retrieve
return
A trigger or nil

Returns the trigger scripts on the object

return
An array of trigger scripts

Finds all objects contained in this object

return
Handle to a array of the objects.

All command input routed through here and parsed.

m
The input message to be parsed
return
false or true depending on whether command succeeded.

Event :timer

e
The event
return
Undefined

[Validate]