- Timestamp:
- Apr 27, 2017, 3:08:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.h
r11402 r11405 46 46 { 47 47 48 48 49 49 class _SOBExport SOB : public Deathmatch 50 50 { 51 51 public: 52 52 SOB(Context* context); //!< Constructor. Registers and initializes the object. 53 53 virtual ~SOB(); //!< Destructor. Cleans up, if initialized. 54 54 virtual void tick(float dt) override; 55 55 56 56 57 57 void setCenterpoint(SOBCenterpoint* center) 58 59 58 { this->center_ = center; } 59 virtual void start() override; 60 60 virtual void end() override; 61 61 virtual void spawnPlayer(PlayerInfo* player) override; 62 62 PlayerInfo* getPlayer() const; 63 63 64 65 64 int getPoints() { 65 return points_; 66 } 67 int getCoins() { 68 return coins_; 69 } 70 void addCoin() { 71 ++coins_; 72 points_+=200; 73 } 74 void addMushroom() { 75 points_+=1000; 76 } 77 int getTimeLeft() { 78 return timeLeft_; 79 } 80 81 82 virtual void playerEntered(PlayerInfo* player) override 83 { 84 Gametype::playerEntered(player); 85 } 86 87 88 WeakPtr<SOBCenterpoint> center_; 89 66 90 protected: 67 91 68 92 69 93 void cleanup(); //!< Cleans up the Gametype 70 WeakPtr<SOBCenterpoint> center_;71 94 WeakPtr<SOBFigure> figure_; 72 95 WeakPtr<Camera> camera; 73 74 75 }; 76 } 96 int points_; 97 int coins_; 98 float timeLeft_; 99 100 101 }; 102 } 77 103 78 104 #endif /* _Pong_H__ */
Note: See TracChangeset
for help on using the changeset viewer.