added a few more pieces to the framework, overhauled main.cc

This commit is contained in:
2024-07-03 11:08:55 -04:00
parent 97ff14cd26
commit 6cbeb42144
17 changed files with 416 additions and 61 deletions

View File

@ -14,6 +14,8 @@ enum error {none};
// TODO: update result to include subject
enum result {fine, died, go_down, hit, moved};
enum game_status {terminated, main_menu, in_game, options};
enum stat_name {HP, ATK, DEF, hostile};
const int LAYER_CNT = 4; // TODO: update as you go
@ -60,6 +62,8 @@ const feature FEATURE_ENEMIES_CHASE = 1 << 2;
const feature FEATURE_INVENTORY = 1 << 3;
const feature FEATURE_THROW = 1 << 4;
const feature FEATURE_REVISIT = 1 << 5;
const feature FEATURE_LOG = 1 << 6;
const feature FEATURE_SAVE = 1 << 7;
typedef std::vector<position> position_list;
typedef std::vector<direction> direction_list;