Class World
In: lib/core/world.rb
Parent: Root
World
Root
TopLevel

The World class is the mother of all worlds.

It contains world state information, the world timer, utility functions, and delegates to the Engine.

cmds
is a handle to the character commands table.
ocmds
is a handle to the object commands table.
timer_list
is a list of all installed timer objects (persistent)
all_characters
is a list of all characters (persistent)
timer_list
is a list of all connected characters

Methods

Attributes

cmds  [RW] 
connected_characters  [RW] 
ocmds  [RW] 

Public Class methods

Create the World. This loads or creates the database depending on whether it finds it.

return
A handle to the World object.

Public Instance methods

Make the character an admin

oid
character object id
return
undefined

Make the character a builder

oid
character object id
return
undefined

Is character an admin?

oid
character object id
return
true or false

Is character a builder?

oid
character object id
return
true or false

Does character own the object?

pid
character object id
oid
object id
return
true or false

memstats scans all objects in memory and produces a report

return
a string

Remove admin priviledges from character

oid
character object id
return
undefined

Remove admin priviledges from character

oid
character object id
return
undefined

Set/add a timer for an object

id
The id of the object that wants to get a timer event
name
The symbolic name of the timer event
time
The interval time in seconds of the timer event

Unset/remove a timer for an object

id
The id of the object to remove a timer event
name
The symbolic name of the timer event to remove (or nil for all events)

[Validate]