- Timestamp:
- May 12, 2011, 4:36:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.h
r8458 r8468 31 31 (file:///home/kmaurus/orxonox/spaceBoundaries/build/doc/api/html/classorxonox_1_1_host.html#9c1e3b39e3b42e467dfbf42902911ce2) 32 32 33 - Kommentieren (Betrachte als Beispiel/Vorbild 'libraries/core/WeakPtr.h') 34 35 - Wiki-SpaceBoundaries-Eintrag aktualisieren 33 Mich finde ich unter humanPlayer ... 34 35 - Kommentieren (Betrachte als Beispiel/Vorbild 'libraries/core/WeakPtr.h') 36 oder brauche groups-file. 36 37 */ 37 38 … … 58 59 @brief SpaceBoundaries gives level creators the possibility to bar Pawns from leaving a defined area (until now this area is a ball). 59 60 60 Five attributes can/should be defined in the XML-File: 61 Some attributes can/should be defined in the XML-File: 62 - 'position' : absolute position of the object of SpaceBoundaries in the level (usually 0,0,0) 63 - 'maxDistance' : defines the area, where a pawn is allowed to be (radius of a ball). 61 64 - 'warnDistance' : If the distance between the pawn of the human player and 'position' is bigger than 'warnDistance', a message is displayed to 62 65 inform the player that he'll soon be leaving the allowed area. 63 - 'maxDistance' : defines the area, where a pawn is allowed to be (radius of a ball).64 66 - 'showDistance' : If the distance between the pawn and the boundary of the allowed area is smaller than 'showDistance', the boundary is shown. 65 - 'healthDecrease' : a measure to define how fast the health of a pawn should decrease after leaving the allowed area (unnecessary if 'reactionMode' == 0).66 Recommended values: 0.1 (slow health decrease) to 5 (very fast health decrease)67 67 - 'reactionMode' : Integer-Value. Defines what effect appears if a space ship has crossed the boundaries. 68 68 0: Reflect the space ship (default). 69 69 1: Decrease Health of the space ship after having left the allowed area. 70 - 'healthDecrease' : a measure to define how fast the health of a pawn should decrease after leaving the allowed area (unnecessary if 'reactionMode' == 0). 71 Recommended values: 0.1 (slow health decrease) to 5 (very fast health decrease) 72 73 Follow http://www.orxonox.net/wiki/SpaceBoundaries to get some further information. 74 75 Examples: 76 Two examples how one could include SpaceBoundaries in the XML-File. The first one uses reflection, the second one health decrease. 77 @code 78 <SpaceBoundaries position="0,0,0" maxDistance="1000" warnDistance="800" showDistance="100" reactionMode="0" /> 79 @endcode 80 81 @code 82 <SpaceBoundaries position="0,0,0" maxDistance="1000" warnDistance="800" showDistance="100" reactionMode="1" healthDecrease="0.2" /> 83 @endcode 70 84 */ 71 85
Note: See TracChangeset
for help on using the changeset viewer.