Changeset 8950
- Timestamp:
- Nov 25, 2011, 3:09:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/src/orxonox/interfaces/PartyMember.h
r8942 r8950 54 54 virtual ~PartyMember(); 55 55 56 57 56 58 /** 57 59 @brief 58 Method to transcribe a PartyMember object to the player. 59 Must be implemented by every class inheriting from PartyMember. 60 @param team 61 60 Method to set the objects teamnumber. 61 Must be implemented by every class inheriting from PartyMember. It is virtual in order to allow to implement a hirarchy. 62 Hirarchy: PlayerInfo > Controller > Pawn. When the level is set in the controller it should be also set in the controlled pawn. 63 @param team The teamnumber to which a PartyMember belongs to. Value '-1' means no team is set. 0,1,2, ... are legal team numbers. 64 62 65 @return 63 66 64 67 */ 68 virtual inline void setTeam(int team) =0; 65 69 66 inline void setTeam(int team)67 { this->team_ = team; }68 70 inline int getTeam() const 69 71 { return this->team_; }
Note: See TracChangeset
for help on using the changeset viewer.