home · contact · privacy
ac3795dee4428d9b4ffefe74f5a15870b468f3e2
[plomrogue] / src / objects_on_map.h
1 #ifndef ACTORS_H
2 #define ACTORS_H
3
4 #include "yx_uint16.h"
5
6 struct World;
7 struct Map;
8
9 struct Player {
10   struct yx_uint16 pos; };
11
12 struct Item {
13   struct Item * next;
14   char name;
15   struct yx_uint16 pos; };
16
17 struct Monster {
18   struct Monster * next;
19   char name;
20   struct yx_uint16 pos; };
21
22 extern char is_passable (struct Map *, struct yx_uint16);
23 extern struct yx_uint16 find_passable_pos (struct Map *);
24 extern void move_monster (struct World *, struct Monster *);
25 extern void move_player (struct World *, char);
26 extern void player_wait(struct World *);
27
28 #endif