27 | | * position - absolute position of the space boundaries in the level (usually 0,0,0) |
28 | | * maxdistance - maximum distance pawns can move away from this point |
29 | | * warndistance - distance at which pawns receive some kind of warning that they're about to reach |
| 22 | * position - absolute position of the object of SpaceBoundaries in the level (usually 0,0,0) |
| 23 | * maxDistance - defines the area, where a pawn is allowed to be (radius of a ball with center 'position'). |
| 24 | * warnDistance - If the distance between the pawn of a human player and 'position' is bigger than 'warnDistance', a message is displayed to inform the player that he's close to the boundary. |
| 25 | * showDistance - If the distance between the pawn and the boundary of the allowed area is smaller than 'showDistance', a graphical representation of the boundary is displayed. |
| 26 | * reactionMode - Integer-Value. Defines what effect appears if a space ship has crossed receptively wants to cross the boundaries. |
| 27 | * 0: Reflect the space ship (default). |
| 28 | * 1: Decrease Health of the space ship after having left the allowed area. |
| 29 | * healthDecrease - a measure to define how fast the health of a pawn should decrease after leaving the allowed area (unnecessary if 'reactionMode' == 0). Recommended values: 0.1 (slow health decrease) to 5 (very fast health decrease). |
31 | | == Actions taken when a pawn reaches the boundary == |
32 | | Several measures can be taken when something reaches the boundaries of the level: |
33 | | * Damage - the entity could take constant damage over time as long as it is outside the borders |
34 | | * Acceleration changes - some kind of invisible wall or acceleration away from the boundary |
35 | | * Visual impairment - darkness, fuzziness or something along those lines |
| 31 | === Notes to above attributes === |
| 32 | Until now, warnDistance has no effect because the function to display a message (void SpaceBoundaries::displayWarning(const std::string warnText)) hasn't been implemented yet. |
| 33 | |