| Trees | Index | Help |
|
|---|
| Package svs_demogame :: Module gamelogic_clients :: Class GameLogicClient |
|
Jellyable--+ |Serializable--+ |Referenceable--+ |GenericClient--+ |ScriptableClient--+ |PlayerClient--+ | GameLogicClient
GameLogicClient evaluates activities in the game
world and evaluates them in relation to the logic or rules of the game
being played.
| Method Summary | |
|---|---|
__init__(self,
name,
passwd)
| |
Handles data packet received from network. | |
Sets up internal representation of gameworld. | |
Updates and evaluates internal representation of gameworld. | |
| Inherited from PlayerClient | |
Handles result of joinClusterGroup action. | |
Retrieves model of game from gameworld client. | |
Handles update sent from client proxy on server. | |
Sets name of gameworld that client should join. | |
| Inherited from ScriptableClient | |
Delete data from client-side cache. | |
Delete data held by server-side proxy. | |
Deposit data with server-side proxy. | |
Disconnect from server. | |
Get data from client-side cache. | |
Collect data from another client. | |
Gets list of clients in cluster group. | |
Start/stop listening to another client. | |
Turns log messages on and off. | |
Send information to listeners. | |
Gets profile for specified client. | |
Store data in client-side cache. | |
Disconnect from server and quit client application. | |
Collect data from server-side proxy. | |
Sends plain text message to other clients, used for chat. | |
Get list of script commands. | |
Handles result of sendCommandResult action. | |
Handles result of sendCommand action. | |
Displays command list. | |
Executes script command. | |
Handles command script from own interface. | |
Handles command sent from client proxy on server. | |
Handles command result sent from client proxy on server. | |
Returns result of script command. | |
Sends command to other network client. | |
Sends command to other network client. | |
Add delegate class for handling work tasks on client. | |
| Inherited from GenericClient | |
Places advert for services on server. | |
Received result of clearDepositedData from avatar. | |
Receives result of depositData from avatar. | |
Handles result of leaveCluster action. | |
Callback for notifyListeners method. | |
Received result of retrieveOwnData from avatar. | |
Empties cache of data deposits held by avatar. | |
Empties cache of data deposits held by client. | |
Connect to server. | |
Sends data packet to avatar on server where it is cached for other clients to collect. | |
Disconnect from cluster. | |
Handles error messages for client. | |
Retrieves data from specified source on cluster, and performs 'callback' on receipt. | |
Allows speacialised handling of labelled data. | |
Retrieves a list of all clients currently connected to cluster group. | |
Retrieves local data from cache. | |
Returns name of client. | |
Retrieves profile for specified client from server. | |
Handles receievd list of clients in group. | |
Receives result of getData from avatar. | |
Receives profile requested from other client. | |
Callback for listenTo method. | |
Callback for sendChatMessage method. | |
Receives result of sendData from avatar. | |
Receives result of sendDataResult from avatar. | |
Callback for listenTo method. | |
Callback for stopListeningTo method. | |
Callback for stopListeningTo method. | |
Deals with received list of group members. | |
Responds notification of request for profile. | |
Performs actions in response to profile receievd from another client. | |
Called after a client has succesfully joined a cluster group. | |
Client attempts to join cluster group. | |
Client leaves cluster. | |
Handles log messages for client. | |
Forward data to listeners. | |
Handles error message sent from client proxy on server. | |
Retrieves profile for cleint | |
Responds to request for data from another client. | |
Receives notification packets from other clients to which this has registered as listener. | |
Receives name of other client that has requested this client's profile. | |
Receives chat message from other clients. | |
Handles data sent from client proxy on server. | |
Handles data sent, inside makeCommandResult, from client proxy on server. | |
Handles status message sent from client proxy on server. | |
Called by server when connection made. | |
Collects previously deposited data packet from avatar. | |
Queries server for clients responding to specified command names. | |
Queries server for clients responding to specified method names. | |
Queries server for clients providing specified services. | |
Queries server for clients using specified services. | |
Generic handler for searching client profiles. | |
Sends chat message to other clients. | |
Sends data to another client. | |
Sends data to another client. | |
Sends HTTP request to specified URL. | |
Called by the server when it shuts down. | |
Register as listener with another client. | |
Register as listener to network processes. | |
Handles status messages for client. | |
De-register as listener with another client. | |
De-register as listener to network processes. | |
Stores local data in cache. | |
| Inherited from Referenceable | |
(internal) | |
A remote message has been received. | |
| Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
| Inherited from Jellyable | |
| |
| Instance Variable Summary | |
|---|---|
| Inherited from GenericClient | |
| object | avatar: proxy class for cluster supplied by server |
| string | clientName: name for client (uses class name as default) |
| string | clientPassword: password for client (uses class signature as default) |
| string | clusterGroupName: name of cluster group |
| dict | dataCache: store for temporary data |
| boolean | logging: flag to turn logging output on and off |
ClientProfile |
profile: client profile |
| object | worker: plugin class for handling specialised processes |
| Class Variable Summary | |
|---|---|
| Inherited from Referenceable | |
Implements |
__implemented__ = <implementedBy twisted.spread.flavors....
|
_implementsTuple |
__implements__ = (<MetaInterface twisted.spread.interfac...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
NoneType |
perspective = None |
| Inherited from Jellyable | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
| Method Details |
|---|
handleDataPacket(self, dataPacket)Handles data packet received from network. This should be overidden by extending classes. |
setupGameWorld(self, gameWorldData)Sets up internal representation of gameworld. |
updateGameWorld(self, gameWorldData)Updates and evaluates internal representation of gameworld. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 | http://epydoc.sf.net |