class GGZCoreTable
|
Table representation. More... |
|
|
Public Methods
Table representation.
GGZCoreTable ()
| GGZCoreTable |
Constructor
GGZCoreTable (GGZTable *table)
| GGZCoreTable |
Constructor (overloaded)
~GGZCoreTable ()
| ~GGZCoreTable |
Destructor
int init (GGZGameType* gametype, char* description, const unsigned int seats)
| init |
Initialize a table. Set a game type and the maximum number of seats.
int addPlayer (char* name, const unsigned int seat)
| addPlayer |
Add a player to the table.
int addBot (char* name, const unsigned int seat)
| addBot |
Add a bot to the table.
int addReserved (char* name, const unsigned int seat)
| addReserved |
Add a reserved seat. This one can then be accessed by other players.
int addSpectator (char *name, const unsigned int seat)
| addSpectator |
Add a game spectator
int removePlayer (char* name)
| removePlayer |
Remove a player from the table.
Return the id of the table.
Return the game type.
char* description ()
| description |
Return the description for this table.
Return the current table state.
int countSeats ()
| countSeats |
Get the number of seats in total.
int countBots ()
| countBots |
Get the number of seats occupied by bots.
int countOpen ()
| countOpen |
Get the number of open seats. If none are open, the game starts.
char* playerName (const unsigned int number)
| playerName |
Return the name of a player.
GGZSeatType playerType (const unsigned int number)
| playerType |
Return the type of a player.
GGZTable * table ()
| table |
Return the internal ggzcore table object.
Generated by: josef on athlon500 on Tue Mar 19 23:18:22 2002, using kdoc 2.0a53. |