class that manages local client/player state with the server More...
#include <aesop-client.h>

Public Member Functions | |
| virtual story::Story * | getStory (void)=0 throw () |
| what's the story? | |
| virtual eClientState | getState (void)=0 throw () |
| current client network state? | |
| virtual bool | getServer (OUT server_info_t &server)=0 |
| what server are we connected to? returns false if not connected yet. | |
| virtual const server_map_t & | getDiscoveredServers (void)=0 |
| what servers have been discovered? WARNING: you may discover thousands! Be careful how you iterate. | |
| virtual bool | requestConnect (IN const char *serverKey)=0 |
| caller can ask to connect to a specific server, as specified by the server key (index into server map from getDiscoveredServers() ). | |
| virtual float | tick (void)=0 |
| Caller must call this method repeatedly! Main network message pump. | |
| virtual bool | createPlayer (IN int playerId)=0 |
| Caller can request that a new player join the game. | |
| virtual void | startLocalConversation (IN const char *guid, IN int playerId, IN smart_ptr< converse::ConversationHost > host)=0 |
| Components on the client can request local conversations (system option menus, etc. | |
| virtual bool | isConversationUnderway (IN const char *guid)=0 |
| is this conversation already going? | |
| virtual void | newGame (IN int playerId)=0 |
| player is requesting a new game TODO: move this into the game logic, it doesn't belong here | |
| virtual void | requestMove (IN int playerId, IN const point3d_t &delta, IN const point3d_t &euler, OUT point3d_t &newPosition)=0 |
| player is asking to move by the specified amount | |
| virtual bool | getPlacement (IN int playerId, OUT placement_t &placement)=0 |
| retrieve current player position and orientation | |
| virtual smart_ptr< PhysicsObject > | getPlayerObject (IN int playerId)=0 |
| retrieve object for player (can be null if player is not in map) | |
|
| |
| virtual | ~Client (void) throw () |
| static smart_ptr< Client > | create (IN ClientHost *host, IN smart_ptr< story::Story > &story, IN smart_ptr< Datahash > &op_params) |
class that manages local client/player state with the server
Definition at line 164 of file aesop-client.h.
| aesop::Client::~Client | ( | void | ) | throw () [virtual] |
Definition at line 65 of file aesop-client.cpp.
1.7.1