summaryrefslogtreecommitdiff
path: root/src/game.h
blob: 2d563f08a9e498f341df16df7de650cdb153ae4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "entity.h"

enum { MAX_ENTITIES = 128 };

typedef struct Game {
	unsigned long uuid;
	int queue_next_scene;
	int queue_restart_scene;
	Entity entities[MAX_ENTITIES];
} Game;

void game_init(Game *this);
void game_update(Game *this);
void game_draw(Game *this);
void game_restart_scene(Game *this);
Entity *game_create_entity(Game *this);
int game_entity_count(Game *this, unsigned int type);
Entity *game_get_entity(Game *this, unsigned int type);