$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <ctype.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "SDL.h"
#include "stratagus.h"
#include "ai.h"
#include "editor.h"
#include "game.h"
#include "guichan.h"
#include "interface.h"
#include "iocompat.h"
#include "iolib.h"
#include "map.h"
#include "netconnect.h"
#include "network.h"
#include "player.h"
#include "replay.h"
#include "results.h"
#include "settings.h"
#include "sound_server.h"
#include "title.h"
#include "translate.h"
#include "ui.h"
#include "unit_manager.h"
#include "version.h"
#include "video.h"
#include "widgets.h"
#include <stdlib.h>
#include <stdio.h>
stratagus.cpp - The main file. | |
#define | REDIRECT_OUTPUT |
std::string | StratagusLibPath |
const char | NameLine [] = NAME " V" VERSION ", " COPYRIGHT |
Path for data directory. | |
std::string | CliMapName |
Flag got an event. | |
static std::vector < gcn::Container * > | Containers |
Filename of the map given on the command line. | |
std::string | MenuRace |
Location of stratagus data. | |
unsigned long | GameCycle |
unsigned long | FastForwardCycle |
Game simulation cycle counter. | |
gcn::Gui * | Gui |
static std::string | stdoutFile |
static std::string | stderrFile |
void | beos_init (int argc, char **argv) |
void | CleanGame () |
void | PrintLocation (const char *file, int line, const char *funcName) |
Cycle to fastforward to in a replay. | |
void | PreMenuSetup () |
Pre menu setup. | |
static int | MenuLoop () |
void | StartMap (const std::string &filename, bool clean) |
static void | PrintHeader () |
void | PrintLicense () |
void | Exit (int err) |
Game Replay Fast Forward Counter. | |
void | ExitFatal (int err) |
Exit. | |
static void | Usage () |
static void | CleanupOutput () |
static void | RedirectOutput () |
void | ParseCommandLine (int argc, char **argv, Parameters ¶meters) |
std::string | GetLocalPlayerNameFromEnv () |
int | main (int argc, char **argv) |
#define REDIRECT_OUTPUT |
void beos_init | ( | int | argc, | |
char ** | argv | |||
) |
Need init function for beos.
argc | Number of command line argurments |
void CleanGame | ( | ) |
Cleanup game.
Call each module to clean up. Contrary to CleanModules, maps can be restarted without reloading all lua files.
static void CleanupOutput | ( | ) | [static] |
void Exit | ( | int | err | ) |
Game Replay Fast Forward Counter.
Exit the game.
err | Error code to pass to shell. |
void ExitFatal | ( | int | err | ) |
Exit.
Do a fatal exit. Called on out of memory or crash.
err | Error code to pass to shell. |
std::string GetLocalPlayerNameFromEnv | ( | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
The main program: initialise, parse options and arguments.
argc | Number of arguments. | |
argv | Vector of arguments. |
static int MenuLoop | ( | ) | [static] |
Run the guichan main menus loop.
void ParseCommandLine | ( | int | argc, | |
char ** | argv, | |||
Parameters & | parameters | |||
) |
void PreMenuSetup | ( | ) |
Pre menu setup.
Pre menu setup.
static void PrintHeader | ( | ) | [static] |
Print headerline, copyright, ...
void PrintLicense | ( | ) |
void PrintLocation | ( | const char * | file, | |
int | line, | |||
const char * | funcName | |||
) |
Cycle to fastforward to in a replay.
static void RedirectOutput | ( | ) | [static] |
void StartMap | ( | const std::string & | filename, | |
bool | clean | |||
) |
static void Usage | ( | ) | [static] |
Display the usage.
std::string CliMapName |
Flag got an event.
std::vector<gcn::Container *> Containers [static] |
Filename of the map given on the command line.
unsigned long FastForwardCycle |
Game simulation cycle counter.
unsigned long GameCycle |
std::string MenuRace |
Location of stratagus data.
const char NameLine[] = NAME " V" VERSION ", " COPYRIGHT |
Path for data directory.
Text string: Name, Version, Copyright.
Name, Version, Copyright
std::string stderrFile [static] |
std::string stdoutFile [static] |
std::string StratagusLibPath |