25 lines
No EOL
556 B
C
25 lines
No EOL
556 B
C
#ifndef OK_BUILDINGS_H
|
|
#define OK_BUILDINGS_H
|
|
#include "ok_types.h"
|
|
|
|
// Building types
|
|
enum OkBuildingKind {
|
|
OK_BUILDING_HQ = 0,
|
|
OK_BUILDING_BARRACKS = 1,
|
|
OK_BUILDING_MAX
|
|
};
|
|
|
|
// Building structure
|
|
typedef struct {
|
|
int x, y;
|
|
OkBuildingKind kind;
|
|
OkFaction faction;
|
|
int resource_cost;
|
|
bool built;
|
|
} OkBuilding;
|
|
|
|
// Function declarations
|
|
void ok_buildings_init(OkWorld *w);
|
|
void ok_buildings_place(OkWorld *w, int x, int y, OkBuildingKind kind, OkFaction faction);
|
|
void ok_buildings_update(OkWorld *w);
|
|
#endif // OK_BUILDINGS_H
|