Phoenix2D-Library  0.10
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Phoenix::Controller Class Reference

Controller
The Controller is the Main Manager of the Phoenix2D Player. It is composed of references to the Main Objects in the Library. The Controller is in charge of instantiation of the rest of the inner objects using the user's parameters. More...

#include <Controller.h>

Collaboration diagram for Phoenix::Controller:
Collaboration graph
[legend]

Public Member Functions

 Controller (const char *teamName, char agentType, const char *hostname)
 Default Constructor. More...
 
 ~Controller ()
 Default Destructor. More...
 
void connect ()
 The main connection, should be called before anything else in Phoenix2D. More...
 
bool isConnected ()
 
void reconnect ()
 Reconnection Logic. More...
 
void disconnect ()
 Disconnect service. More...
 
Commands * getCommands ()
 Commands getter. More...
 
World * getWorld ()
 World getter. More...
 
Self * getSelf ()
 Self getter. More...
 

Static Public Attributes

static char AGENT_TYPE = 'p'
 p = Player, t = Trainer More...
 

Private Attributes

Parser * parser
 Pointer to inner Parser Object. More...
 
Connect * c
 Pointer to inner Connect Object. More...
 
Reader * reader
 Pointer to inner Reader Object. More...
 
Server * server
 Pointer to inner Server Object. More...
 
Commands * commands
 Pointer to inner Commans Object. More...
 
World * world
 Pointer to inner World Object. More...
 
Self * self
 Pointer to inner Self Object. More...
 
bool connected
 Connection status. More...
 
std::string team_name
 
std::string hostname
 

Detailed Description

Controller
The Controller is the Main Manager of the Phoenix2D Player. It is composed of references to the Main Objects in the Library. The Controller is in charge of instantiation of the rest of the inner objects using the user's parameters.

Definition at line 75 of file Controller.h.


The documentation for this class was generated from the following files: