central/game.cc File Reference

#include "game.h"
#include "user.h"
#include "../general/log.h"
#include "../general/util.h"

Defines

#define DEBUG_ROUTINE   "game"

Functions

long load_game (channel *ch)
 Get the game data from this channel.
game get_game (long id)
 Get the data from a specific game.

Variables

const char * join_types []
 Array with the string names of the join choices.
const int join_elms = 4
 Number of join choices.
const char * goal_types []
 Array with the string names of the goal choices.
const int goal_elms = 5
 Number of goal choices.
map< long, gamegames
 List of current games on number.

Define Documentation

#define DEBUG_ROUTINE   "game"


Function Documentation

game get_game ( long  id  ) 

Get the data from a specific game.

long load_game ( channel ch  ) 

Get the game data from this channel.

Returns:
the number on success or 0 on failure


Variable Documentation

map<long, game> games

List of current games on number.

const int goal_elms = 5

Number of goal choices.

const char* goal_types[]

Initial value:

 {
    "Mayor player",
    "Time",
    "Victory points",
    "Target city",
    "Target city and time"
}
Array with the string names of the goal choices.

const int join_elms = 4

Number of join choices.

const char* join_types[]

Initial value:

 {
    "Open",
    "Moderated",
    "Spectators",
    "Private"
}
Array with the string names of the join choices.



Generated on Tue Jan 1 17:30:01 2008 for central/game.cc File Reference by  doxygen   Visit the project page on SourceForge.net Logo