Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2019, 3:30:57 PM (5 years ago)
Author:
ahuwyler
Message:

Walls are bigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h

    r12307 r12331  
    22#define _OrxoBloxWall_H__
    33
    4 
     4#include "OrxoBlox/OrxoBloxPrereqs.h"
    55#include "worldentities/StaticEntity.h"
    66#include "tools/Timer.h"
     
    2323             //   this.destroy();
    2424            //}
    25 
     25            OrxoBloxStones* getStone(unsigned int i);
    2626            /**
    2727            @brief Set the Health of the stone.
     
    3030            void setHealth(unsigned int health)
    3131                {
    32                     this->health_ = health;
     32                    this->totalhealth_ = health;
    3333                }
     34
    3435            /**
    3536            @brief Get the size of the stone.
     
    3738            */
    3839            unsigned int getHealth(void) const
    39                 { return this->health_; }
     40                { return this->totalhealth_; }
    4041
    41             void gotHit(){
    42                 if (this->health_ > 0){
    43                     this->health_ -= this->health_;
    44                     }
    45                 //  else ~OrxoBloxStones();
    46                 }
    4742            void setGame(OrxoBlox* orxoblox)
    4843                { assert(orxoblox); orxoblox_ = orxoblox; }
    4944        private:
     45            void createWall(void);
    5046            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.
    5250            bool delay_;
    5351            OrxoBlox* orxoblox_;
Note: See TracChangeset for help on using the changeset viewer.