diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-09 15:08:13 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-09 15:08:13 +0200 |
| commit | 979c3b4528da1608404d6e163211280fee5da9c5 (patch) | |
| tree | dd5584640933fc6bce1820bcc452af74d356396f /pacman-c++/util.h | |
| parent | d547dec802f76c346538144f4eacf6d8ca6310c4 (diff) | |
| download | foop-979c3b4528da1608404d6e163211280fee5da9c5.tar.gz foop-979c3b4528da1608404d6e163211280fee5da9c5.tar.bz2 foop-979c3b4528da1608404d6e163211280fee5da9c5.zip | |
added some utility
Diffstat (limited to 'pacman-c++/util.h')
| -rw-r--r-- | pacman-c++/util.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pacman-c++/util.h b/pacman-c++/util.h index 34ddd31..1754f54 100644 --- a/pacman-c++/util.h +++ b/pacman-c++/util.h | |||
| @@ -2,7 +2,17 @@ | |||
| 2 | #define UTIL_H | 2 | #define UTIL_H |
| 3 | 3 | ||
| 4 | #include "constants.h" | 4 | #include "constants.h" |
| 5 | // temporary | 5 | #include "actor.h" |
| 6 | Transmission::map_t createDummyMap(); | ||
| 7 | 6 | ||
| 8 | #endif // UTIL_H \ No newline at end of file | 7 | namespace Util { |
| 8 | Transmission::map_t createDummyMap(); | ||
| 9 | |||
| 10 | Transmission::map_t createEmptyMap(); | ||
| 11 | |||
| 12 | // default is to assert false with -1 | ||
| 13 | Transmission::field_t actorMovementToTransmission(Actor::Movement mov, | ||
| 14 | Transmission::field_t def = -1); | ||
| 15 | Actor::Movement transmissionMovementToActor(Transmission::field_t field, | ||
| 16 | Actor::Movement def = Actor::Movement(-1)); | ||
| 17 | } | ||
| 18 | #endif // UTIL_H | ||
