aboutsummaryrefslogtreecommitdiff
path: root/src/core/moves.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/moves.h')
-rw-r--r--src/core/moves.h7
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);
16STATIC_INLINE bool parallel(uint8_t, uint8_t); 16STATIC_INLINE bool parallel(uint8_t, uint8_t);
17STATIC_INLINE uint8_t moveopposite(uint8_t); 17STATIC_INLINE uint8_t moveopposite(uint8_t);
18STATIC_INLINE uint8_t reorient_move(uint8_t, uint8_t); 18STATIC_INLINE uint8_t reorient_move(uint8_t, uint8_t);
19STATIC_INLINE uint8_t inverse_reorient_move(uint8_t, uint8_t);
19STATIC_INLINE uint8_t movefollow(uint8_t); 20STATIC_INLINE uint8_t movefollow(uint8_t);
20STATIC uint8_t transform_move(uint8_t, uint8_t); 21STATIC 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
227STATIC_INLINE uint8_t
228inverse_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 */
227STATIC_INLINE uint8_t 234STATIC_INLINE uint8_t
228movefollow(uint8_t move) 235movefollow(uint8_t move)

Generated with cgit - Back to sebastiano.tronto.net