Rename buildings to building_factory, randomize unit place position
This commit is contained in:
22
game/building_factory.h
Normal file
22
game/building_factory.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef PIXELDEFENSE_BUILDING_FACTORY_H
|
||||
#define PIXELDEFENSE_BUILDING_FACTORY_H
|
||||
|
||||
#include <breeze.h>
|
||||
#include <flecs.h>
|
||||
|
||||
#include "components.h"
|
||||
#include "game_tileset.h"
|
||||
|
||||
#include "game_state.h"
|
||||
|
||||
typedef struct Game Game;
|
||||
|
||||
bool canPlaceBuilding(Game *game, BuildingType type, i32 tileX, i32 tileY);
|
||||
ecs_entity_t placeBuilding(Game *game, BuildingType type, i32 posX, i32 posY, Player player);
|
||||
|
||||
void getBuildingCost(BuildingType type, i32 cost[RES_COUNT]);
|
||||
bool canAffordBuilding(BuildingType type, PlayerResources res);
|
||||
|
||||
Vector2 getPositionNearBuilding(ecs_entity_t building, Vector2 fromPos);
|
||||
|
||||
#endif //PIXELDEFENSE_BUILDING_FACTORY_H
|
||||
Reference in New Issue
Block a user