[Orxonox-commit 1218] r5936 - code/trunk/src/orxonox/interfaces
dafrick at orxonox.net
dafrick at orxonox.net
Tue Oct 13 21:49:54 CEST 2009
Author: dafrick
Date: 2009-10-13 21:49:54 +0200 (Tue, 13 Oct 2009)
New Revision: 5936
Modified:
code/trunk/src/orxonox/interfaces/PlayerTrigger.h
Log:
Updated documentation in PlayerTrigger.
Modified: code/trunk/src/orxonox/interfaces/PlayerTrigger.h
===================================================================
--- code/trunk/src/orxonox/interfaces/PlayerTrigger.h 2009-10-13 15:05:17 UTC (rev 5935)
+++ code/trunk/src/orxonox/interfaces/PlayerTrigger.h 2009-10-13 19:49:54 UTC (rev 5936)
@@ -42,7 +42,7 @@
{
/**
@brief
- A PlayerTrigger is a trigger which is normally triggered by ControllableEntities and can as such return a pointer to the ControllableEntity which triggered it.
+ A PlayerTrigger is a trigger which is normally triggered by Pawns and can as such return a pointer to the Pawn which triggered it.
@author
Damian 'Mozork' Frick
*/
@@ -54,14 +54,14 @@
/**
@brief Returns the player that triggered the PlayerTrigger.
- @return Returns a pointer to the ControllableEntity that triggered the PlayerTrigger.
+ @return Returns a pointer to the Pawn that triggered the PlayerTrigger.
*/
inline Pawn* getTriggeringPlayer(void) const
{ return this->player_; }
/**
- @brief Checks whether the PlayerTrigger normally returns a ControllableEntity.
- @return Returns true if the PlayerTrigger normally returns a ControllableEntity.
+ @brief Checks whether the PlayerTrigger normally returns a Pawn.
+ @return Returns true if the PlayerTrigger normally returns a Pawn.
*/
inline bool isForPlayer(void) const
{ return this->isForPlayer_; }
@@ -69,21 +69,21 @@
protected:
/**
@brief Set the player that triggered the PlayerTrigger. This is normally done by classes inheriting vom PlayerTrigger.
- @param player A pointer to the ControllableEntity that triggered the PlayerTrigger.
+ @param player A pointer to the Pawn that triggered the PlayerTrigger.
*/
inline void setTriggeringPlayer(Pawn* player)
{ this->player_ = player; }
/**
- @brief Set whether the PlayerTrigger normally is triggered by ControllableEntities.
- @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by ControllableEntities, false if not.
+ @brief Set whether the PlayerTrigger normally is triggered by Pawns.
+ @param isForPlayer Should be true when the PlayerTrigger should be set to normally be triggered by Pawns, false if not.
*/
inline void setForPlayer(bool isForPlayer)
{ this->isForPlayer_ = isForPlayer; }
private:
Pawn* player_; //!< The player that triggered the PlayerTrigger.
- bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by ControllableEntities.
+ bool isForPlayer_; //!< Is true when the PlayerTrigger should be set to normally be triggered by Pawns.
};
More information about the Orxonox-commit
mailing list