OSDN Git Service

wwww 16_entity.h -
[proj16/16.git] / src / lib / 16_enti.h
1 #ifndef __16_NPC__
2 #define __16_NPC__
3
4 #include "src/lib/16_sprit.h"
5 #include "src/lib/16_head.h"
6 #include "src/lib/16_in.h"
7
8
9 typedef struct
10 {
11         int x; // exact position on the viewable map
12         int y; // exact position on the viewable map
13         int tx; // tile position on the viewable map
14         int ty; // tile position on the viewable map
15         int triggerx; // trigger box tile position on the viewable map
16         int triggery; // trigger box tile position on the viewable map
17         byte d;         // direction the NPC faces
18         struct sprite *spri; // sprite used by NPC
19         sword hp; // hitpoints of the NPC
20         byte near pdir; // previous direction~
21         word speed;             // NPC's speed
22         word spt;               // speed per tile
23 } entity_t;
24
25 #endif