Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2011, 4:36:30 PM (14 years ago)
Author:
kmaurus
Message:

several small improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.h

    r8458 r8468  
    3131                (file:///home/kmaurus/orxonox/spaceBoundaries/build/doc/api/html/classorxonox_1_1_host.html#9c1e3b39e3b42e467dfbf42902911ce2)
    3232               
    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.
    3637 */
    3738
     
    5859@brief SpaceBoundaries gives level creators the possibility to bar Pawns from leaving a defined area (until now this area is a ball).
    5960
    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).
    6164       - 'warnDistance' : If the distance between the pawn of the human player and 'position' is bigger than 'warnDistance', a message is displayed to
    6265                          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).
    6466       - '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)
    6767       - 'reactionMode' : Integer-Value. Defines what effect appears if a space ship has crossed the boundaries.
    6868                            0: Reflect the space ship (default).
    6969                            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
     73Follow http://www.orxonox.net/wiki/SpaceBoundaries to get some further information.
     74
     75Examples:
     76Two 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
    7084*/
    7185
Note: See TracChangeset for help on using the changeset viewer.