You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
655 B

#ifndef ENTITY_H_
#define ENTITY_H_
#include "../Sprite/sprite.h"
#include "../game.h"
typedef struct Entity Entity;
typedef struct Entity{
Sprite *sprite;
float destX;
float destY;
int hasDestination;
int selected;
Entity *next;
Entity *prev;
} Entity;
typedef struct EntityList{
Entity *head;
Entity *tail;
} EntityList;
Entity * EntityInit(Sprite *sprite);
EntityList * EntityListInit();
void EntityListPrintForward(EntityList *entities);
void EntityListInsert(EntityList *entities, Entity *data);
void EntityListRemove(EntityList *entities, Entity *remove);
void EntityListActAllEntities(Game *game);
#endif