Advertisement
Guest User

Xml.h

a guest
May 6th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.00 KB | None | 0 0
  1. //-----------------------------------------------------------------
  2. // Game File
  3. // C++ Source - Grapnel.h - version v2_16 jan 2015
  4. // Copyright DAE Programming Team
  5. // http://www.digitalartsandentertainment.be/
  6. //-----------------------------------------------------------------
  7.  
  8. //-----------------------------------------------------------------
  9. // Student data
  10. // Name: Gaetan Thibaut
  11. // Group: 1DAE10
  12. //-----------------------------------------------------------------
  13.  
  14. #pragma once
  15.  
  16. //-----------------------------------------------------------------
  17. // Include Files
  18. //-----------------------------------------------------------------
  19.  
  20. #include "Resource.h"  
  21. #include "AbstractGame.h"
  22.  
  23. class Level;
  24. class Player;
  25. class Camera;
  26. class GroundEnemy;
  27. class Health;
  28. class Hud;
  29. class EditorMode;
  30. class Coin;
  31. class Music;
  32. class Blast;
  33. class Platform;
  34.  
  35. //-----------------------------------------------------------------
  36. // Grapnel Class                                                               
  37. //-----------------------------------------------------------------
  38. class Grapnel : public AbstractGame
  39. {
  40. public:
  41.     //---------------------------
  42.     // Constructor(s)
  43.     //---------------------------
  44.     Grapnel();
  45.  
  46.     //---------------------------
  47.     // Destructor
  48.     //---------------------------
  49.     virtual ~Grapnel();
  50.  
  51.     // C++11 make the class non-copyable
  52.     Grapnel(const Grapnel&) = delete;
  53.     Grapnel& operator=(const Grapnel&) = delete;
  54.  
  55.     //---------------------------
  56.     // General Methods
  57.     //---------------------------
  58.  
  59.     virtual void GameInitialize(GameSettings &gameSettings);
  60.     virtual void GameStart();
  61.     virtual void GameEnd();
  62.     virtual void GameTick(double deltaTime);
  63.     virtual void GamePaint(RECT rect);
  64.  
  65.     // -------------------------
  66.     // Public Member functions
  67.     // -------------------------
  68. private:
  69.     // -------------------------
  70.     // Private Member functions
  71.     // -------------------------
  72.     void RestartGame();
  73.     void RestartAll();
  74.     void PlayerHealth();
  75.     void SavePointers();
  76.     void LoadPointers();
  77.     void CreateObject(const std::wstring & pointerRef);
  78.     void createGroundEnemy(const std::wstring & pointerRef);
  79.     void createCoin(const std::wstring & pointerRef);
  80.     void createPlatform(const std::wstring & pointerRef);
  81.     std::wstring GetValue(const std::wstring & nameRef, const std::wstring & shapeRef);
  82.     DOUBLE2 StringToDOUBLE2(const std::wstring & DOUBLE2Ref);
  83.     double StringTodouble(const std::wstring & doubleRef);
  84.  
  85.     // -------------------------
  86.     // Private Datamembers
  87.     // -------------------------
  88.     int m_DebugRenderigState;
  89.     bool m_IsEditorModeEnabled;
  90.     int m_CoinScore;
  91.     bool m_IsRestarting;
  92.  
  93.     Level *m_LvlOnePtr = nullptr;
  94.  
  95.     Player *m_PlrHeroPtr = nullptr;
  96.  
  97.     Camera *m_CamVieuwPtr = nullptr;
  98.  
  99.     Bitmap *m_BmpGroundEnemyPtr = nullptr;
  100.     std::vector<GroundEnemy*> m_GenGroundEnemyPtrArr;
  101.  
  102.     Hud *m_HudScreenInfoPtr = nullptr;
  103.  
  104.     EditorMode *EmdEditModePtr = nullptr;
  105.  
  106.     Bitmap *m_BmpCoinPtr = nullptr;
  107.     std::vector<Coin*> m_ConCoinPtrArr;
  108.  
  109.     Music *m_MscMusicPtr = nullptr;
  110.  
  111.     std::vector<Platform*> m_PfmPlatformPtrArr;
  112. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement