_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
games.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include "games.h"
#include "netdriver.h"

games.cpp - Basic games query process.

static GameDataGames
 
int GameID
 
void CreateGame (Session *session, char *description, char *map, char *players, char *ip, char *port, char *password)
 
int CancelGame (Session *session)
 
int StartGame (Session *session)
 
int JoinGame (Session *session, int id, char *password)
 
int PartGame (Session *session)
 
static int MatchGameType (Session *session, GameData *game)
 
void ListGames (Session *session)
 

Function Documentation

int CancelGame ( Session session)

Cancel a game

void CreateGame ( Session session,
char *  description,
char *  map,
char *  players,
char *  ip,
char *  port,
char *  password 
)

Create a game

int JoinGame ( Session session,
int  id,
char *  password 
)

Join a game

void ListGames ( Session session)

List games

static int MatchGameType ( Session session,
GameData game 
)
static
int PartGame ( Session session)

Leave a game

int StartGame ( Session session)

Start a game

Variable Documentation

int GameID
GameData* Games
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.