Changeset 9868 for code/branches/invaders/src/modules/invader/Invader.h
- Timestamp:
- Dec 3, 2013, 8:18:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/Invader.h
r9866 r9868 29 29 /** 30 30 @file Invader.h 31 @brief Declaration of the Invader class.31 @brief Gametype. 32 32 @ingroup Invader 33 33 */ … … 50 50 { 51 51 public: 52 Invader(Context* context); //!< Constructor. Registers and initializes the object. 53 virtual ~Invader(); //!< Destructor. Cleans up, if initialized. 52 Invader(Context* context); 54 53 55 virtual void start(); //!< Starts the Invader minigame. 56 virtual void end(); ///!< Ends the Invader minigame. 57 58 //virtual void spawnPlayer(PlayerInfo* player); //!< Spawns the input player. 54 virtual void start(); 55 virtual void end(); 59 56 60 57 void spawnEnemy(); … … 71 68 void levelUp(){level++;} 72 69 void addPoints(int numPoints){point += numPoints * multiplier; b_combo = true;} 70 // checks if multiplier should be reset. 73 71 void comboControll(); 72 void init(); 74 73 int lives; 74 int multiplier; 75 bool bEndGame; 75 76 private: 76 77 WeakPtr<InvaderCenterPoint> center_; 77 78 WeakPtr<InvaderShip> player; 78 79 79 ConsoleCommand* console_addEnemy;80 80 Timer enemySpawnTimer; 81 81 Timer comboTimer; … … 84 84 int point; 85 85 bool b_combo; 86 int multiplier;87 86 }; 88 87 }
Note: See TracChangeset
for help on using the changeset viewer.