main.cc File Reference

Contains the main() function. More...

#include "audio.h"
#include "event_handler.h"
#include "game.h"
#include "gamedata.h"
#include "gametime.h"
#include "input.h"
#include "nls.h"
#include "python_class.h"
#include "screen.h"
#include "yarg.h"
#include "win_manager.h"

Include dependency graph for main.cc:

Go to the source code of this file.

Functions

void init_adonthell (void)
 SWIG init prototype.
bool init_python ()
int main (int argc, char *argv[])
 Game's main function.


Detailed Description

Contains the main() function.

Author:
Kai Sterker <kaisterker@linuxgames.com>

Definition in file main.cc.


Function Documentation

void init_adonthell ( void   ) 

SWIG init prototype.

int main ( int  argc,
char *  argv[] 
)

Game's main function.

It simply initialises the game and runs the "init.py" file in the game directory given as first argument. Once the execution is finished, it cleans everything up, and exits.

Parameters:
argc Number of arguments to the program.
argv Array of strings containing the program's arguments.
Returns:
0 in case of success, error code otherwise.

Definition at line 94 of file main.cc.


Generated on Sun Mar 1 09:56:45 2009 for Adonthell by  doxygen 1.5.8