Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h @ 12351

Last change on this file since 12351 was 12346, checked in by pomselj, 6 years ago

Worked on Collision, doesn't work yet, compiles tho

File size: 1.7 KB
RevLine 
[12278]1#ifndef _OrxoBloxWall_H__
2#define _OrxoBloxWall_H__
3
[12331]4#include "OrxoBlox/OrxoBloxPrereqs.h"
[12278]5#include "worldentities/StaticEntity.h"
6#include "tools/Timer.h"
7
8namespace orxonox
9{
10
11    /**
12    @brief
13
14    @author
15
16    @ingroup OrxoBlox
17    */
18    class _OrxoBloxExport OrxoBloxWall : public StaticEntity
19    {
20        public:
21            OrxoBloxWall(Context* context); //!< Constructor. Registers and initializes the object.
22            virtual ~OrxoBloxWall() {}
23             //   this.destroy();
24            //}
[12331]25            OrxoBloxStones* getStone(unsigned int i);
[12278]26            /**
27            @brief Set the Health of the stone.
28            @param size The dimensions a stone has in the game world. (A stone is a cube)
29            */
30            void setHealth(unsigned int health)
31                { 
[12331]32                    this->totalhealth_ = health; 
[12278]33                }
[12331]34
[12278]35            /**
36            @brief Get the size of the stone.
37            @return Returns the dimensions a stone has in the game world. (A stone is a cube)
38            */
39            unsigned int getHealth(void) const
[12331]40                { return this->totalhealth_; }
[12278]41
[12307]42            void setGame(OrxoBlox* orxoblox)
43                { assert(orxoblox); orxoblox_ = orxoblox; }
[12346]44            int getNumberOfStones();
[12278]45        private:
[12331]46            void createWall(void);
[12307]47            OrxoBlox* getOrxoBlox();
[12331]48            unsigned int totalhealth_;
49            unsigned int num_Stones_;
[12332]50            unsigned int size_;
[12331]51            std::vector<OrxoBloxStones*> TotalStones_; //!< A list of all stones in a Wall.
[12278]52            bool delay_;
[12307]53            OrxoBlox* orxoblox_;
[12341]54            WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field.
[12278]55
56    };
57}
58
59#endif /* _OrxoBloxWall_H__ */
Note: See TracBrowser for help on using the repository browser.