1 #ifndef INCLUDED_BADGE_JUMPNRUN_MOVEABLE_H
2 #define INCLUDED_BADGE_JUMPNRUN_MOVEABLE_H
4 #include "../util/util.h"
8 // Do not collide with JUMPNRUN_ENEMY_* and JUMPNRUN_PLAYER_* flags.
9 JUMPNRUN_MOVEABLE_TOUCHING_GROUND
= 1,
10 JUMPNRUN_MOVEABLE_MIRRORED
= 2,
11 JUMPNRUN_MOVEABLE_DYING
= 4
14 typedef struct jumpnrun_moveable
{
22 uint8_t jumpable_frames
;
25 static inline bool jumpnrun_moveable_touching_ground(jumpnrun_moveable
const *self
) { return self
->flags
& JUMPNRUN_MOVEABLE_TOUCHING_GROUND
; }
26 static inline bool jumpnrun_moveable_mirrored (jumpnrun_moveable
const *self
) { return self
->flags
& JUMPNRUN_MOVEABLE_MIRRORED
; }