git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@142 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-24 14:02:05 +00:00
parent 3faa6b5bd6
commit a31d516ae0
7 changed files with 1594 additions and 1580 deletions

View File

@@ -3,6 +3,7 @@
#include <string>
#include <SDL.h>
#include <cstdlib>
#define MAX_COMMANDS 8
#define MAX_SOUND_LENGTH 1024
@@ -11,7 +12,7 @@
#define MAX_NUMBER_OF_FILES 100
typedef struct stDisplay
struct stDisplay
{
unsigned int Width;
unsigned int Height;
@@ -21,15 +22,18 @@ typedef struct stDisplay
short Filtermode;
short Zoom;
unsigned short FrameSkip;
} stDisplay;
// as long as we only have POD
stDisplay() { memset(this, 0, sizeof(stDisplay)); }
};
typedef struct stDevice
struct stDevice
{
SDL_Joystick *Joystick;
SDL_Event Event;
} stDevice;
};
typedef struct stLevelControl
struct stLevelControl
{
// level control
int command; // used to give a command to playgame_levelmanager()
@@ -57,18 +61,23 @@ typedef struct stLevelControl
unsigned int level_done, level_done_timer;
unsigned int level_finished_by; // index of player that finished level
unsigned int exitXpos;
} stLevelControl;
// as long as we only have POD
stLevelControl() { memset(this, 0, sizeof(stLevelControl)); }
};
typedef struct stControl
struct stControl
{
short eseq; // see only the ending sequence
short dtm; // go direct to map.
short storyboard; // go to storyboard
short skipstarting; // Skip Startmenu, Intro and Mainmenu.
bool eseq; // see only the ending sequence
bool dtm; // go direct to map.
bool storyboard; // go to storyboard
bool skipstarting; // Skip Startmenu, Intro and Mainmenu.
stLevelControl levelcontrol;
} stControl;
stControl() : eseq(false), dtm(false), storyboard(false), skipstarting(false) {}
};
struct stGameData
{