diff options
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h new file mode 100644 index 0000000..0c431ea --- /dev/null +++ b/src/entity.h @@ -0,0 +1,25 @@ +#include "utils.h" + +// Pretty much any object in the game. + +#ifndef ENTITY_H +#define ENTITY_H + +typedef int8_t EntityId; + +enum { + ENTITY_NONE = -1, + OLD_MINT, + STICKY_NICKEL +}; + +typedef struct { + EntityId id; + Vector3 position; + BoundingBox box; +} Entity; + +Entity createEntity(EntityId id, Vector3 position); +void updateEntity(Entity* entity, Game* game); + +#endif |