- Timestamp:
- May 2, 2019, 3:30:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h
r12307 r12331 2 2 #define _OrxoBloxWall_H__ 3 3 4 4 #include "OrxoBlox/OrxoBloxPrereqs.h" 5 5 #include "worldentities/StaticEntity.h" 6 6 #include "tools/Timer.h" … … 23 23 // this.destroy(); 24 24 //} 25 25 OrxoBloxStones* getStone(unsigned int i); 26 26 /** 27 27 @brief Set the Health of the stone. … … 30 30 void setHealth(unsigned int health) 31 31 { 32 this-> health_ = health;32 this->totalhealth_ = health; 33 33 } 34 34 35 /** 35 36 @brief Get the size of the stone. … … 37 38 */ 38 39 unsigned int getHealth(void) const 39 { return this-> health_; }40 { return this->totalhealth_; } 40 41 41 void gotHit(){42 if (this->health_ > 0){43 this->health_ -= this->health_;44 }45 // else ~OrxoBloxStones();46 }47 42 void setGame(OrxoBlox* orxoblox) 48 43 { assert(orxoblox); orxoblox_ = orxoblox; } 49 44 private: 45 void createWall(void); 50 46 OrxoBlox* getOrxoBlox(); 51 unsigned int health_; 47 unsigned int totalhealth_; 48 unsigned int num_Stones_; 49 std::vector<OrxoBloxStones*> TotalStones_; //!< A list of all stones in a Wall. 52 50 bool delay_; 53 51 OrxoBlox* orxoblox_;
Note: See TracChangeset
for help on using the changeset viewer.