Changes between Version 7 and Version 8 of code/doc/SpaceBoundaries
- Timestamp:
- Mar 24, 2011, 2:16:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/SpaceBoundaries
v7 v8 12 12 specify the attributes necessary for it to work. 13 13 14 The SpaceBoundaries object will do its work in the tick function, using an 15 Iterator of type MobileEntity. Via the interface of MobileEntity, we can then 16 control the pawns away from the boundary or do damage to them. 17 14 18 Goals of the implementation: 15 19 * Detection of pawns exiting the allowed range … … 24 28 * maxdistance - maximum distance pawns can move away from this point 25 29 * warndistance - distance at which pawns receive some kind of warning that they're about to reach 30 31 == Actions taken when a pawn reaches the boundary == 32