]> git.r.bdr.sh - rbdr/super-polarity/blame - src/actor_manager.h
Proper merge for gitignore
[rbdr/super-polarity] / src / actor_manager.h
CommitLineData
8534e46e
BB
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
15typedef struct actor_manager ActorManager;
16typedef struct actor_node ActorNode;
17
18typedef struct actor_manager {
19 ActorNode *actors;
20 void (*update)(ActorManager *, Uint32);
21 void (*draw)(ActorManager *);
22 void (*addActor)(ActorManager *, Actor *);
23} ActorManager;
24
25typedef struct actor_node {
26 Actor *val;
27 ActorNode *next;
28} ActorNode;
29
30ActorManager* createActorManager();
31
32#endif