Use enums for most of the rest of the game constants.

This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
This commit is contained in:
2019-11-23 21:12:47 -05:00
parent 0001f754ac
commit 4f785e2650
19 changed files with 287 additions and 209 deletions

View File

@@ -4,10 +4,12 @@ class cVehicle;
void put_pc_screen();
void place_buy_button(short position,short pc_num,short item_num);
void put_item_screen(short screen_num);
void put_item_screen(eItemWinMode screen_num);
void place_item_bottom_buttons();
void set_stat_window(short new_stat);
void place_item_button(short which_button_to_put,short which_slot,short which_button_position,short extra_val);
void set_stat_window(eItemWinMode new_stat);
void set_stat_window_for_pc(int pc);
void place_item_button(short button_position,short which_slot,eItemButton button_type = ITEMBTN_USE);
void place_item_graphic(short which_slot,short graphic);
short first_active_pc();
void refresh_stat_areas(short mode);
short total_encumbrance(short pc_num);