]> git.r.bdr.sh - rbdr/super-polarity/blob - src/actor_manager.h
900c57c98bc50256211ca6658629ea4b98722b75
[rbdr/super-polarity] / src / actor_manager.h
1 //
2 // actor_manager.h
3 // Super Polarity
4 //
5 // Created by Ruben Beltran del Rio on 8/14/13.
6 // Copyright (c) 2013 Abuguet. All rights reserved.
7 //
8
9 #ifndef Super_Polarity_actor_manager_h
10 #define Super_Polarity_actor_manager_h
11
12 #include "SDL2/SDL.h"
13 #include "actor.h"
14
15 typedef struct actor_manager ActorManager;
16 typedef struct actor_node ActorNode;
17
18 typedef struct actor_manager {
19 ActorNode *actors;
20 void (*update)(ActorManager *, Uint32);
21 void (*draw)(ActorManager *);
22 void (*addActor)(ActorManager *, Actor *);
23 } ActorManager;
24
25 typedef struct actor_node {
26 Actor *val;
27 ActorNode *next;
28 } ActorNode;
29
30 ActorManager* createActorManager();
31
32 #endif