blob: 0c431eadb7e6aa9a82218fc1e44cb08c4792b600 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|