[Orxonox-commit 4279] r8950 - code/branches/gamecontent/src/orxonox/interfaces
jo at orxonox.net
jo at orxonox.net
Fri Nov 25 15:09:17 CET 2011
Author: jo
Date: 2011-11-25 15:09:17 +0100 (Fri, 25 Nov 2011)
New Revision: 8950
Modified:
code/branches/gamecontent/src/orxonox/interfaces/PartyMember.h
Log:
Modified: code/branches/gamecontent/src/orxonox/interfaces/PartyMember.h
===================================================================
--- code/branches/gamecontent/src/orxonox/interfaces/PartyMember.h 2011-11-23 15:16:15 UTC (rev 8949)
+++ code/branches/gamecontent/src/orxonox/interfaces/PartyMember.h 2011-11-25 14:09:17 UTC (rev 8950)
@@ -53,18 +53,20 @@
PartyMember();
virtual ~PartyMember();
+
+
/**
@brief
- Method to transcribe a PartyMember object to the player.
- Must be implemented by every class inheriting from PartyMember.
- @param team
-
+ Method to set the objects teamnumber.
+ Must be implemented by every class inheriting from PartyMember. It is virtual in order to allow to implement a hirarchy.
+ Hirarchy: PlayerInfo > Controller > Pawn. When the level is set in the controller it should be also set in the controlled pawn.
+ @param team The teamnumber to which a PartyMember belongs to. Value '-1' means no team is set. 0,1,2, ... are legal team numbers.
+
@return
-
+
*/
+ virtual inline void setTeam(int team) =0;
- inline void setTeam(int team)
- { this->team_ = team; }
inline int getTeam() const
{ return this->team_; }
More information about the Orxonox-commit
mailing list