1 #ifndef BUILDING_BARRACKS_H 2 #define BUILDING_BARRACKS_H 3 4 #include "building/building.h" 5 #include "map/point.h" 6 7 #define MAX_WEAPONS_BARRACKS 4 8 9 int building_get_barracks_for_weapon(int x, int y, int resource, int road_network_id, int distance_from_entry, map_point *dst); 10 11 void building_barracks_add_weapon(building *barracks); 12 13 int building_barracks_create_soldier(building *barracks, int x, int y); 14 15 int building_barracks_create_tower_sentry(building *barracks, int x, int y); 16 17 void building_barracks_request_tower_sentry(void); 18 19 void building_barracks_decay_tower_sentry_request(void); 20 21 int building_barracks_has_tower_sentry_request(void); 22 23 void building_barracks_save_state(buffer *buf); 24 25 void building_barracks_load_state(buffer *buf); 26 27 void building_barracks_toggle_priority(building* barracks); 28 29 int building_barracks_get_priority(building* barracks); 30 31 32 typedef enum { 33 PRIORITY_TOWER = 0, 34 PRIORITY_FORT = 1, 35 } barracks_priority; 36 37 #endif // BUILDING_BARRACKS_H 38