Changeset 3020 for code/branches/gametypes/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.h
- Timestamp:
- May 23, 2009, 7:04:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gametypes/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.h
r3019 r3020 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Val Mikos 24 24 * Co-authors: 25 * Val Mikos25 * ... 26 26 * 27 27 */ 28 29 30 31 // setState und getState functions declare here32 // TeamBaseMatchBase class33 34 35 // save as TeamBaseMatchBase.h in objects/worldentities/pawns/TeamBaseMatchBase.h36 37 28 38 29 #ifndef _TeamBaseMatchBase_H__ … … 61 52 TeamBaseMatchBase(BaseObject* creator); 62 53 63 // if class closes, close everything 54 // if class closes, close everything 64 55 virtual ~TeamBaseMatchBase() {} 65 66 67 68 // Set the state of a base to whatever the argument of the function is 56 57 58 59 // Set the state of a base to whatever the argument of the function is 69 60 void setState(BaseState::Enum state) 70 61 { 71 62 this->state_ = state; 72 63 this->changeTeamColour(); 73 64 } 74 65 75 66 76 // Get the state of a base as a return value 77 BaseState::Enum getState() 78 79 80 67 // Get the state of a base as a return value 68 BaseState::Enum getState() const 69 { 70 return this->state_; 71 } 81 72 82 73
Note: See TracChangeset
for help on using the changeset viewer.