diff options
Diffstat (limited to 'src/core/moves.h')
| -rw-r--r-- | src/core/moves.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/moves.h b/src/core/moves.h index 20544a3..0d97172 100644 --- a/src/core/moves.h +++ b/src/core/moves.h | |||
| @@ -16,6 +16,7 @@ STATIC_INLINE bool isbase(uint8_t); | |||
| 16 | STATIC_INLINE bool parallel(uint8_t, uint8_t); | 16 | STATIC_INLINE bool parallel(uint8_t, uint8_t); |
| 17 | STATIC_INLINE uint8_t moveopposite(uint8_t); | 17 | STATIC_INLINE uint8_t moveopposite(uint8_t); |
| 18 | STATIC_INLINE uint8_t reorient_move(uint8_t, uint8_t); | 18 | STATIC_INLINE uint8_t reorient_move(uint8_t, uint8_t); |
| 19 | STATIC_INLINE uint8_t inverse_reorient_move(uint8_t, uint8_t); | ||
| 19 | STATIC_INLINE uint8_t movefollow(uint8_t); | 20 | STATIC_INLINE uint8_t movefollow(uint8_t); |
| 20 | STATIC uint8_t transform_move(uint8_t, uint8_t); | 21 | STATIC uint8_t transform_move(uint8_t, uint8_t); |
| 21 | 22 | ||
| @@ -223,6 +224,12 @@ reorient_move(uint8_t m, uint8_t or) | |||
| 223 | return transform_move(m, orientation_trans[or]); | 224 | return transform_move(m, orientation_trans[or]); |
| 224 | } | 225 | } |
| 225 | 226 | ||
| 227 | STATIC_INLINE uint8_t | ||
| 228 | inverse_reorient_move(uint8_t m, uint8_t or) | ||
| 229 | { | ||
| 230 | return transform_move(m, inverse_trans_table[orientation_trans[or]]); | ||
| 231 | } | ||
| 232 | |||
| 226 | /* This is currently unused, but it may turn out to be useful at some point */ | 233 | /* This is currently unused, but it may turn out to be useful at some point */ |
| 227 | STATIC_INLINE uint8_t | 234 | STATIC_INLINE uint8_t |
| 228 | movefollow(uint8_t move) | 235 | movefollow(uint8_t move) |
