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.
30 lines
701 B
30 lines
701 B
#ifndef BUILDING_H_
|
|
#define BUILDING_H_
|
|
#include "../Sprite/sprite.h"
|
|
#include "../game.h"
|
|
|
|
typedef struct Building{
|
|
Sprite *sprite;
|
|
int id;
|
|
int isBaustelle;
|
|
float progress;
|
|
|
|
struct Building *next;
|
|
struct Building *prev;
|
|
} Building;
|
|
|
|
typedef struct BuildingList {
|
|
Building *head;
|
|
Building *tail;
|
|
} BuildingList;
|
|
|
|
Building * BuildingInit(Game *game, int id, int x, int y);
|
|
BuildingList * BuildingListInit();
|
|
|
|
void BuildingFinishConstruction(Game *game, Building *building);
|
|
void BuildingListPrintForward(BuildingList *buildings);
|
|
void BuildingListInsert(BuildingList *buildings, Building *data);
|
|
void BuildingListRemove(BuildingList *buildings, Building *remove);
|
|
|
|
#endif
|