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...
 
CommandsgetCommands ()
 Commands getter. More...
 
WorldgetWorld ()
 World getter. More...
 
SelfgetSelf ()
 Self getter. More...
 

Static Public Attributes

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

Private Attributes

Parserparser
 Pointer to inner Parser Object. More...
 
Connectc
 Pointer to inner Connect Object. More...
 
Readerreader
 Pointer to inner Reader Object. More...
 
Serverserver
 Pointer to inner Server Object. More...
 
Commandscommands
 Pointer to inner Commans Object. More...
 
Worldworld
 Pointer to inner World Object. More...
 
Selfself
 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: