Mirai's Miscellaneous Misadventures
M21 / include / mimimi / controls.h
1
2
3
4#ifndef MIMIMI_CONTROLS_H
5#define MIMIMI_CONTROLS_H
6
7struct mimimi_behavior;
8struct mimimi_chapter;
9struct mimimi_walk;
10struct mimimi_allocator;
11struct mimimi_physics;
12
13struct mimimi_history
14{
15 unsigned int left:16, right:16;
16};
17
18struct mimimi_controls
19{
20 struct mimimi_behavior *jump;
21};
22
23struct mimimi_jump
24{
25 int strength;
26};
27
28struct mimimi_behavior *mimimi_history(struct mimimi_history *history, struct mimimi_chapter *chapter, struct mimimi_allocator *allocator);
29
30struct mimimi_behavior *mimimi_controls(struct mimimi_controls *controls, struct mimimi_walk *walk, struct mimimi_history *history, struct mimimi_allocator *allocator);
31
32struct mimimi_behavior *mimimi_jump(struct mimimi_jump *jump, struct mimimi_physics *physics, struct mimimi_allocator *allocator);
33
34#endif