CTeam Class Reference
[Client API]

Team implementation on client side. More...

#include <CTeam.hh>

Inheritance diagram for CTeam:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CTeam (int team_id, CRules *r, CPlayerMsg *pm)
void loadConfig (const std::string &team_file)
 Load team configuration from xml.
void loadPlayerConfig (xml::XMLTeam &team, int player_id)
 Load player configuration from xml.
void placeTeam (int formation_id)
 Set the position of all players on the field.
int declareAction (CPlayer *p, enum eDeclaredAction action)
 Declare an action for the player Called from the UI.
void msgTeamInfo (const MsgTeamInfo *m)
void msgPlayerCreate (const MsgPlayerCreate *m)
void msgReroll (const MsgReroll *m)
void msgTouchdooown (const MsgTouchdooown *m)

Detailed Description

Team implementation on client side.


Member Function Documentation

void CTeam::placeTeam ( int  formation_id  ) 

Set the position of all players on the field.

Parameters:
formation_id The xml formation id to fetch position from.
Exceptions:
XMLError Thrown on any xml error, including if the player position can't be found in the xml file.


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:10:11 2007 for Stechec/TBT by  doxygen 1.4.7