aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/entity.h b/src/entity.h
index 38f4092..915c562 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -7,26 +7,29 @@
typedef int8_t EntityId;
-#define ENTITY_COUNT 3
+#define ENTITY_COUNT 4
-// Constants for entities.
+// Entity scales.
#define TREE_SCALE 32.0
+#define BUSH_SCALE 6.0
enum {
ENTITY_NONE = -1,
OLD_MINT,
STICKY_NICKEL,
- TREE
+ TREE,
+ BUSH
};
typedef struct {
EntityId id;
- Vector3 position;
+ Vector3 position; // Shouldnt be accessed directly.
BoundingBox box;
} Entity;
Entity createEntity(EntityId id, Vector3 position);
void updateEntity(Entity* entity, Game* game);
void setEntityPosition(Entity* entity, Vector3 position);
+void placeEntityOnGround(Entity* entity, const World* world);
#endif