class GGZCoreTable

Table representation. More...

Definition#include <GGZCoreTable.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

int  id ()

id

Return the id of the table.

GGZCoreGametype*  type ()

type

Return the game type.

char*  description ()

description

Return the description for this table.

char  state ()

state

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.