- Timestamp:
- Apr 29, 2012, 11:08:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.h
r9122 r9136 37 37 class _OrxonoxExport TowerDefense : public Deathmatch 38 38 { 39 public: 40 TowerDefense(BaseObject* creator); 41 virtual ~TowerDefense() {} 42 43 virtual void start(); //<! The function is called when the gametype starts 44 //virtual void end(); 45 virtual void tick(float dt); 46 //virtual void playerEntered(PlayerInfo* player); 47 //virtual bool playerLeft(PlayerInfo* player); 48 49 //virtual void pawnKilled(Pawn* victim, Pawn* killer = 0); 50 //virtual void playerScored(PlayerInfo* player); 51 private: 52 void spawnEnemy(); 39 public: 40 TowerDefense(BaseObject* creator); 41 virtual ~TowerDefense(); 42 43 virtual void start(); //<! The function is called when the gametype starts 44 //virtual void end(); 45 virtual void tick(float dt); 46 //virtual void playerEntered(PlayerInfo* player); 47 //virtual bool playerLeft(PlayerInfo* player); 48 49 //virtual void pawnKilled(Pawn* victim, Pawn* killer = 0); 50 //virtual void playerScored(PlayerInfo* player); 51 52 void setCenterpoint(TowerDefenseCenterpoint *centerpoint); 53 54 /* Part of a temporary hack to allow the player to add towers */ 55 void addTower(int x, int y); 56 ConsoleCommand* dedicatedAddTower_; 57 58 private: 59 // WeakPtr<TowerDefenseCenterpoint> center_; 60 TowerDefenseCenterpoint *center_; 53 61 }; 54 62 }
Note: See TracChangeset
for help on using the changeset viewer.