added throwing

This commit is contained in:
2024-07-17 21:39:10 -04:00
parent ea381c24f6
commit dbae34e3a2
10 changed files with 258 additions and 37 deletions

View File

@ -12,7 +12,8 @@ static const int INF = 0x3F3F3F3F;
// fine will waste a turn
enum result : int {fine, died, go_down, go_up, hit, moved,
miss, terminate, applied, applied_nothing,
toggle_the_world, restart_game, unknown
toggle_the_world, restart_game, unknown,
inventory, thrown
};
struct long_result {
@ -38,7 +39,10 @@ enum game_command : int {game_command_terminate = 0,
up_stairs, down_stairs,
the_world, game_restart,
game_command_pass, game_command_panic,
enter
enter, toggle_inventory,
throw_north, throw_south, throw_east, throw_west,
throw_northeast, throw_northwest,
throw_southeast, throw_southwest
};
// Character generation related
@ -143,4 +147,8 @@ static const int GOLD_NORMAL = 2;
static const int GOLD_MERCHANT = 4;
static const int GOLD_DRAGON = 6;
static const size_t WHAT_ENEMY = 1 << 29;
static const size_t WHAT_WALL = 1 << 30;
static const size_t WHAT_SPACE = 1 << 31;
#endif