- Timestamp:
- May 26, 2011, 5:23:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.h
r8609 r8613 107 107 std::vector<billboardAdministration> billboards_; 108 108 109 int reaction_; //!< Werte: 0, 1, 2.110 //!< 0: Refle ktion an Boundaries(Standard).111 //!< 1: Health-Abzug-Modus.112 //!< 2: Invert ierte Version von 0. Verbiete es, in ein Gebiet hinein zu fliegen.113 float maxDistance_; //!< maximal zulaessige Entfernung von 'this->getPosition()'.114 float warnDistance_; //!< Entfernung von 'this->getPosition()', ab der eine Warnung angezeigt wird, dass man bald das zulaessige Areal verlaesst.115 float showDistance_; //!< D efiniert, wann die Grenzen visualisiert werden sollen. ("Entfernung von 'this->maxDistance_'")109 int reaction_; //!< Values: 0, 1, 2. 110 //!< 0: Reflection on boundary (Standard). 111 //!< 1: Decrease-Health-Mode. 112 //!< 2: Inverted Version of 0. Prohibit to fly INTO a defined area. 113 float maxDistance_; //!< Maximum allowed distance. 114 float warnDistance_; //!< Distance in which a warning is displayed. 115 float showDistance_; //!< Distance at which the boundaries are displayed. 116 116 117 float healthDecrease_; //!< Mass fuer die Anzahl Health-Points, die nach ueberschreiten der Entfernung 'maxDistance_' von 'this->getPosition()' abgezogen werden. 118 //!< Empfohlene Werte: 0.1 (langsame Health-Verminderung) bis 5 (sehr schnelle Health-Verminderung). 119 //!< Hat nur eine Bedeutung, falls 'this->reaction_' 1 (eins) ist. 117 float healthDecrease_; //!< Rate of health loss. 120 118 121 122 RadarViewable* centerRadar_; //!< Repraesentation von SpaceBoundaries auf dem Radar. 123 119 //RadarViewable* centerRadar_; //!< Representation of the space boundary in the radar. 124 120 125 121 // Funktionen:: 126 float computeDistance(WorldEntity *item); //!< Auf den Mittelpunkt 'this->getPosition()' bezogen.127 void displayWarning(const std::string warnText); //!< Einen Warntext auf dem Bildschirm ausgeben. (noch nicht implementiert, TODO)122 float computeDistance(WorldEntity *item); //!< Compute distance to center point. 123 void displayWarning(const std::string warnText); //!< TODO: Implement. 128 124 void displayBoundaries(Pawn *item); 129 125 void conditionalBounceBack(Pawn *item, float currentDistance, float dt);
Note: See TracChangeset
for help on using the changeset viewer.