central/game.h File Reference

#include <vector>
#include <map>
#include "party.h"
#include "../general/channel.h"

Go to the source code of this file.

Classes

class  game

Defines

#define state_defining   0
 Public information on a game.
#define state_editor   1
#define state_game   2
#define state_pauzed   3
#define state_winner   4
#define state_finished   5

Enumerations

enum  join_type { Open, Moderated, Spectators, Private }
 The different choices for limits to people joining the game. More...
enum  goal_type {
  Mayor_player, Time, Victory_points, Target_city,
  Target_city_and_time
}
 The different game goals possible. More...

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

map< long, gamegames
 List of current games on number.
long game_number
 Last given out game number.
const char * join_types []
 Array with the string names of the join choices.
const int join_elms
 Number of join choices.
const char * goal_types []
 Array with the string names of the goal choices.
const int goal_elms
 Number of goal choices.


Define Documentation

#define state_defining   0

Public information on a game.

#define state_editor   1

#define state_finished   5

#define state_game   2

#define state_pauzed   3

#define state_winner   4


Enumeration Type Documentation

enum goal_type

The different game goals possible.

Enumerator:
Mayor_player 
Time 
Victory_points 
Target_city 
Target_city_and_time 

enum join_type

The different choices for limits to people joining the game.

Enumerator:
Open 
Moderated 
Spectators 
Private 


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

long game_number

Last given out game number.

map<long,game> games

List of current games on number.

const int goal_elms

Number of goal choices.

const char* goal_types[]

Array with the string names of the goal choices.

const int join_elms

Number of join choices.

const char* join_types[]

Array with the string names of the join choices.



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