From 8534e46e400268c5ceffb3b14f02cef39eedae8f Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Wed, 14 Aug 2013 09:00:22 -0500 Subject: Add some basic actorstuffs --- src/actor_manager.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/actor_manager.h (limited to 'src/actor_manager.h') diff --git a/src/actor_manager.h b/src/actor_manager.h new file mode 100644 index 0000000..900c57c --- /dev/null +++ b/src/actor_manager.h @@ -0,0 +1,32 @@ +// +// actor_manager.h +// Super Polarity +// +// Created by Ruben Beltran del Rio on 8/14/13. +// Copyright (c) 2013 Abuguet. All rights reserved. +// + +#ifndef Super_Polarity_actor_manager_h +#define Super_Polarity_actor_manager_h + +#include "SDL2/SDL.h" +#include "actor.h" + +typedef struct actor_manager ActorManager; +typedef struct actor_node ActorNode; + +typedef struct actor_manager { + ActorNode *actors; + void (*update)(ActorManager *, Uint32); + void (*draw)(ActorManager *); + void (*addActor)(ActorManager *, Actor *); +} ActorManager; + +typedef struct actor_node { + Actor *val; + ActorNode *next; +} ActorNode; + +ActorManager* createActorManager(); + +#endif -- cgit