1 #ifndef BUILDING_ROADBLOCK_H 2 #define BUILDING_ROADBLOCK_H 3 4 #include "building/building.h" 5 6 typedef enum { 7 PERMISSION_NONE = 0, 8 PERMISSION_MAINTENANCE = 1, 9 PERMISSION_PRIEST = 2, 10 PERMISSION_MARKET = 3, 11 PERMISSION_ENTERTAINER = 4, 12 PERMISSION_EDUCATION = 5, 13 PERMISSION_MEDICINE = 6, 14 PERMISSION_TAX_COLLECTOR = 7, 15 PERMISSION_LABOR_SEEKER = 8, 16 PERMISSION_MISSIONARY = 9, 17 PERMISSION_WATCHMAN = 10, 18 } roadblock_permission; 19 20 void building_roadblock_set_permission(roadblock_permission p, building* b); 21 int building_roadblock_get_permission(roadblock_permission p, building* b); 22 23 int building_type_is_roadblock(building_type type); 24 25 #endif // BUILDING_ROADBLOCK_H 26