Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------------------------------------------
- // Game File
- // C++ Source - Grapnel.h - version v2_16 jan 2015
- // Copyright DAE Programming Team
- // http://www.digitalartsandentertainment.be/
- //-----------------------------------------------------------------
- //-----------------------------------------------------------------
- // Student data
- // Name: Gaetan Thibaut
- // Group: 1DAE10
- //-----------------------------------------------------------------
- #pragma once
- //-----------------------------------------------------------------
- // Include Files
- //-----------------------------------------------------------------
- #include "Resource.h"
- #include "AbstractGame.h"
- class Level;
- class Player;
- class Camera;
- class GroundEnemy;
- class Health;
- class Hud;
- class EditorMode;
- class Coin;
- class Music;
- class Blast;
- class Platform;
- //-----------------------------------------------------------------
- // Grapnel Class
- //-----------------------------------------------------------------
- class Grapnel : public AbstractGame
- {
- public:
- //---------------------------
- // Constructor(s)
- //---------------------------
- Grapnel();
- //---------------------------
- // Destructor
- //---------------------------
- virtual ~Grapnel();
- // C++11 make the class non-copyable
- Grapnel(const Grapnel&) = delete;
- Grapnel& operator=(const Grapnel&) = delete;
- //---------------------------
- // General Methods
- //---------------------------
- virtual void GameInitialize(GameSettings &gameSettings);
- virtual void GameStart();
- virtual void GameEnd();
- virtual void GameTick(double deltaTime);
- virtual void GamePaint(RECT rect);
- // -------------------------
- // Public Member functions
- // -------------------------
- private:
- // -------------------------
- // Private Member functions
- // -------------------------
- void RestartGame();
- void RestartAll();
- void PlayerHealth();
- void SavePointers();
- void LoadPointers();
- void CreateObject(const std::wstring & pointerRef);
- void createGroundEnemy(const std::wstring & pointerRef);
- void createCoin(const std::wstring & pointerRef);
- void createPlatform(const std::wstring & pointerRef);
- std::wstring GetValue(const std::wstring & nameRef, const std::wstring & shapeRef);
- DOUBLE2 StringToDOUBLE2(const std::wstring & DOUBLE2Ref);
- double StringTodouble(const std::wstring & doubleRef);
- // -------------------------
- // Private Datamembers
- // -------------------------
- int m_DebugRenderigState;
- bool m_IsEditorModeEnabled;
- int m_CoinScore;
- bool m_IsRestarting;
- Level *m_LvlOnePtr = nullptr;
- Player *m_PlrHeroPtr = nullptr;
- Camera *m_CamVieuwPtr = nullptr;
- Bitmap *m_BmpGroundEnemyPtr = nullptr;
- std::vector<GroundEnemy*> m_GenGroundEnemyPtrArr;
- Hud *m_HudScreenInfoPtr = nullptr;
- EditorMode *EmdEditModePtr = nullptr;
- Bitmap *m_BmpCoinPtr = nullptr;
- std::vector<Coin*> m_ConCoinPtrArr;
- Music *m_MscMusicPtr = nullptr;
- std::vector<Platform*> m_PfmPlatformPtrArr;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement