12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /*!
- * \file include/Game.h
- * \brief Game abstraction
- *
- * \author xythobuz
- */
-
- #ifndef _GAME_H_
- #define _GAME_H_
-
- #include <vector>
-
- #include "Camera.h"
- #include "Entity.h"
- #include "Render.h"
- #include "TombRaider.h"
- #include "World.h"
-
- /*!
- * \brief Game abstraction
- */
- class Game {
- public:
-
- Game();
-
- ~Game();
-
- int initialize();
-
- bool isLoaded();
-
- int loadLevel(const char *level);
-
- void destroy();
-
- void handleAction(ActionEvents action, bool isFinished);
-
- void handleMouseMotion(int xrel, int yrel);
-
- unsigned int getTextureStart();
- unsigned int getTextureOffset();
-
- Entity &getLara();
-
- private:
-
- void processPakSounds();
- void processTextures();
- void processSprites();
- void processMoveables();
- void processMoveable(int index, int i, int object_id);
- void processModels();
- void processRooms();
-
- #ifdef EXPERIMENTAL
- void setupTextureColor(texture_tri_t *r_tri, float *colorf);
- #endif
-
- char *mName;
- bool mLoaded;
-
- TombRaider mTombRaider;
-
- unsigned int mTextureStart;
- unsigned int mTextureOffset;
-
- int mLara;
- };
-
- Game &getGame();
-
- #endif
|