* Test whether the position is on-map. * @return Position is on-map. */
| 161 | * @return Position is on-map. |
| 162 | */ |
| 163 | inline bool Position::testBounds() |
| 164 | { |
| 165 | return (this->posX >= 0 && this->posX < WORLD_W |
| 166 | && this->posY >= 0 && this->posY < WORLD_H); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Less-than comparison on positions (needed for map since Position is used as |
no outgoing calls
no test coverage detected