Changeset 2934 for code/branches/gametypes/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.h
- Timestamp:
- Apr 27, 2009, 4:26:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gametypes/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.h
r2903 r2934 39 39 #define _TeamBaseMatchBase_H__ 40 40 41 #include " pawn.h"41 #include "Pawn.h" 42 42 43 43 namespace orxonox … … 55 55 } 56 56 57 struct Base58 {59 BaseState::Enum state_;60 };61 57 62 63 64 65 66 67 class _OrxonoxExport TeamBaseMatchBase : public RadarViewable 58 class _OrxonoxExport TeamBaseMatchBase : public Pawn 68 59 { 69 60 public: 70 61 TeamBaseMatchBase(BaseObject* creator); 71 62 72 // if class closes, close everything 73 virtual ~TeamBaseMatchBase(); 74 75 virtual void setState(base) 76 { 77 78 63 // if class closes, close everything 64 virtual ~TeamBaseMatchBase() {} 65 66 67 68 // Set the state of a base to whatever the argument of the function is 69 void setState(BaseState::Enum state) 70 { 71 this->state_ = state; 79 72 } 80 virtual enum getState(base);81 82 83 73 84 74 85 86 protected: 75 // Get the state of a base as a return value 76 BaseState::Enum getState() 77 { 78 return this->state_; 79 } 87 80 88 81 82 protected: 89 83 90 91 92 84 BaseState::Enum state_; 85 }; 93 86 } 94 87
Note: See TracChangeset
for help on using the changeset viewer.