Class CharacterProxy
In: daimoku-server/characterproxy.rb
Parent: Object

CharacterProxy acts as the proxy between the Daimoku Game World and the SimulationClient. Commands are evaluated within the Sandbox and then the result marshalled back to the CharacterProxy.

Methods

agent_punch   announce_arrival   down   drop   east   emote_room   examine   exits   inventory   io   login   logout   look   new   north   randnum   say_code   say_room   south   system_logout   take   try   up   west  

Attributes

character_matrix_io  [R] 
io_object_name  [W] 
matrix_character  [R] 
name  [R] 
sandbox  [R] 
session_id  [R] 
socket  [R] 

Public Class methods

character_matrix_io is used by the Sandbox to send output back to the Player‘s socket

Public Instance methods

Agent Punch a Player, oh yeah!

Announce the Player‘s arrival, to other Players within the current Room. Called by the SimulationClient

Go to the room below the current Room. Called by the SimulationClient

Drop an items into the current room Send the message to each Player‘s socket

Go to the room East of the current Room. Called by the SimulationClient

Emote a message to the current room Send the message to each Player‘s socket

Examine an item, either in the Players inventory or in the room Send the message to each Player‘s socket

Describe exits from the current Room. Called by the SimulationClient

Display Inventory

Announce the name of the IO Object. Called by the SimulationClient

Called by the SimulationServer, when the Character is logging into the GameWorld

Called by the SimulationServer, when the Character is logging out of the GameWorld

Look around the current Room. Called by the SimulationClient

Go to the room North of the current Room. Called by the SimulationClient

Provide a random string, used for creating session ids and guids

Say the code and it‘s results to the current room. Send the code to each Player‘s socket.

Say a message to the current room Send the message to each Player‘s socket

Go to the room South of the current Room. Called by the SimulationClient

Called by TheReaper to force logout a dead Player

Take an item that is in the current room Send the message to each Player‘s socket

Display Inventory

Go to the room above the current Room. Called by the SimulationClient

Go to the room West of the current Room. Called by the SimulationClient

[Validate]