[Orxonox-commit 3551] r8237 - code/branches/spaceboundaries/src/orxonox/worldentities
kmaurus at orxonox.net
kmaurus at orxonox.net
Tue Apr 12 19:54:37 CEST 2011
Author: kmaurus
Date: 2011-04-12 19:54:36 +0200 (Tue, 12 Apr 2011)
New Revision: 8237
Modified:
code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h
Log:
some comments added
Modified: code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h
===================================================================
--- code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h 2011-04-12 15:39:49 UTC (rev 8236)
+++ code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h 2011-04-12 17:54:36 UTC (rev 8237)
@@ -49,7 +49,12 @@
@brief SpaceBoundaries gives level creators the possibility to bar Pawns from leaving a defined area.
Four attributes can/should be defined in the XML-File:
- 'position', 'warnDistance', 'maxDistance', 'healthDecrease'.
+ - 'position' : absolute position of the SpaceBoundaries class. '*Distance' refers to this 'position'.
+ - 'warnDistance' : If the distance between the pawn of the human player and 'position' is bigger than 'warnDistance', a message is displayed to
+ inform the player that he'll soon be leaving the allowed area.
+ - 'maxDistance' : defines the area, where a pawn is allowed to be (radius of a ball).
+ - 'healthDecrease' : a measure to define how fast the health of a pawn should decrease after leaving the allowed area.
+ Empfohlene Werte: 0.1 (langsame Health-Verminderung) bis 5 (sehr schnelle Health-Verminderung)
*/
namespace orxonox
@@ -60,7 +65,7 @@
SpaceBoundaries(BaseObject* creator);
~SpaceBoundaries();
- void setMaxDistance(float r);
+ void se tMaxDistance(float r);
float getMaxDistance();
void setWarnDistance(float r);
@@ -80,7 +85,7 @@
float healthDecrease_; //!< Mass fuer die Anzahl Health-Points, die nach ueberschreiten der Entfernung 'maxDistance_' von 'this->getPosition()' abgezogen werden.
//!< Empfohlene Werte: 0.1 (langsame Health-Verminderung) bis 5 (sehr schnelle Health-Verminderung)
- RadarViewable* centerRadar_; //!< Repraesentation von 'this->getPosition()' auf dem Radar.
+ RadarViewable* centerRadar_; //!< Repraesentation von SpaceBoundaries auf dem Radar.
float computeDistance(WorldEntity *item); //!< Auf den Mittelpunkt 'this->getPosition()' bezogen.
void displayWarning(const std::string warnText);
More information about the Orxonox-commit
mailing list