OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

Game.cpp File Reference

#include <string.h>
#include <stdio.h>
#include "SDL_image.h"
#include "sge_surface.h"
#include "sge_primitives.h"
#include "sge_bm_text.h"
#include "SDL_events.h"
#include "SDL_keysym.h"
#include <fstream>
#include "Event.h"
#include "PlayerSelect.h"
#include "Background.h"
#include "common.h"
#include "gfx.h"
#include "Backend.h"
#include "RlePack.h"
#include "State.h"
#include "Game.h"
#include "Audio.h"
#include "MortalNetwork.h"
#include "MszPerl.h"

Defines

#define MAXFRAMESKIP   5
#define GROUNDZERO   (440 + m_iYOffset)

Functions

int DoGame (char *a_pcReplayFile, bool a_bIsReplay, bool a_bDebug)
 Public static function.
int GetBackgroundNumber ()

Variables

PerlInterpreter * my_perl
SFpsCounter oFpsCounter

Define Documentation

#define GROUNDZERO   (440 + m_iYOffset)
 

#define MAXFRAMESKIP   5
 


Function Documentation

int DoGame char *  a_pcReplayFile,
bool  a_bIsReplay,
bool  a_bDebug
 

Public static function.

Other parts of OpenMortal need not include "Game.h" so long as they have the definition of this method (defined in "common.h"). The method runs a cycle of the game (either a normal game, or replay).

In replay mode, DoReplay() is called, and the replay file is required. In normal mode, Run() is called. The replay file is recorded, if it is not NULL.

int GetBackgroundNumber  ) 
 


Variable Documentation

PerlInterpreter* my_perl