X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_entity.h;fp=src%2Flib%2F16_entity.h;h=17ee10fae9a000436b6387d6b0f58132ed6472d5;hb=c8dd189c61a9d0e0ef34224be609f1c8f590be7c;hp=0000000000000000000000000000000000000000;hpb=d6f4d6055ab7da24dd416e4161bef5ea5662a170;p=16.git diff --git a/src/lib/16_entity.h b/src/lib/16_entity.h new file mode 100644 index 00000000..17ee10fa --- /dev/null +++ b/src/lib/16_entity.h @@ -0,0 +1,25 @@ +#ifndef __16_NPC__ +#define __16_NPC__ + +#include "src/lib/16_sprit.h" +#include "src/lib/16_head.h" +#include "src/lib/16_in.h" + + +typedef struct +{ + int x; // exact position on the viewable map + int y; // exact position on the viewable map + int tx; // tile position on the viewable map + int ty; // tile position on the viewable map + int triggerx; // trigger box tile position on the viewable map + int triggery; // trigger box tile position on the viewable map + byte d; // direction the NPC faces + struct sprite *spri; // sprite used by NPC + sword hp; // hitpoints of the NPC + byte near pdir; // previous direction~ + word speed; // NPC's speed + word spt; // speed per tile +} entity_t; + +#endif