2000-08-29 21:54:22 +02:00
|
|
|
/**********************/
|
|
|
|
/*** Main Game File ***/
|
|
|
|
/**********************/
|
|
|
|
|
|
|
|
#ifndef __GAME_GAME_H__
|
|
|
|
#define __GAME_GAME_H__
|
|
|
|
|
2000-12-07 16:56:20 +01:00
|
|
|
#include "system\gstate.h"
|
|
|
|
#include "level\level.h"
|
2000-08-29 21:54:22 +02:00
|
|
|
|
2001-01-16 21:55:44 +01:00
|
|
|
#ifndef __GAME_EVENT_H__
|
|
|
|
#include "game\event.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __GAME_THING_H__
|
|
|
|
#include "game\thing.h"
|
|
|
|
#endif
|
|
|
|
|
2000-08-29 21:54:22 +02:00
|
|
|
/*****************************************************************************/
|
2000-12-07 16:56:20 +01:00
|
|
|
class FontBank;
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
class CGameScene : public CScene
|
|
|
|
{
|
|
|
|
public:
|
2001-01-15 16:22:33 +01:00
|
|
|
CGameScene() {;}
|
|
|
|
virtual ~CGameScene() {;}
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
|
2001-01-15 16:22:33 +01:00
|
|
|
void init();
|
|
|
|
void shutdown();
|
|
|
|
void render();
|
|
|
|
void think(int _frames);
|
|
|
|
int readyToShutdown();
|
|
|
|
char *getSceneName() {return "Game";}
|
2000-08-29 21:54:22 +02:00
|
|
|
|
2001-01-15 16:22:33 +01:00
|
|
|
static MATRIX *GetCamMtx() {return(&CamMtx);}
|
2001-01-16 20:00:08 +01:00
|
|
|
class CPlayer *getPlayer();
|
2001-01-16 21:55:44 +01:00
|
|
|
void sendEvent( GAME_EVENT evt, CThing *sourceThing );
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2000-12-07 16:56:20 +01:00
|
|
|
CLevel Level;
|
2001-01-16 17:20:45 +01:00
|
|
|
class CPlayer *m_player;
|
2001-01-22 21:57:39 +01:00
|
|
|
static FontBank *s_genericFont;
|
|
|
|
static MATRIX CamMtx;
|
2000-12-07 16:56:20 +01:00
|
|
|
//static class SpriteBank *s_sprites; <-- Was causing compile error, sorry
|
2000-10-31 17:41:02 +01:00
|
|
|
|
2000-08-29 21:54:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
extern CGameScene GameScene;
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
#endif
|