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"
|
2001-01-12 23:45:13 +01:00
|
|
|
#include "player\player.h"
|
2000-08-29 21:54:22 +02:00
|
|
|
|
2001-01-10 18:27:12 +01:00
|
|
|
#ifndef __GAME_CONVO_H__
|
|
|
|
#include "game\convo.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);}
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2000-12-07 16:56:20 +01:00
|
|
|
CLevel Level;
|
2001-01-12 23:45:13 +01:00
|
|
|
CPlayer Player;
|
2001-01-10 18:27:12 +01:00
|
|
|
CConversation m_conversation;
|
2000-12-07 16:56:20 +01:00
|
|
|
static FontBank *s_genericFont;
|
2001-01-15 16:22:33 +01:00
|
|
|
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
|