changed unique_ptr access to using raw pointers to denote non-ownership

added new flag -e for extra stuff (potions/races)
IMPORTANT: main.cc is undergoing rework
This commit is contained in:
2024-07-12 09:58:30 -04:00
parent b3300b8e7c
commit c9e96b5e6e
8 changed files with 26 additions and 22 deletions

View File

@ -1,10 +1,10 @@
#include "curses_input.h"
curses_input::curses_input(cursor &new_curse):
curses_input::curses_input(cursor *new_curse):
curse{new_curse} {}
game_command curses_input::get_command() {
switch (curse.getcmd()) {
switch (curse->getcmd()) {
case 'h':
return game_command::move_west;
@ -51,7 +51,7 @@ game_command curses_input::get_command() {
return game_command_pass;
}
switch (curse.getcmd()) {
switch (curse->getcmd()) {
case 'h':
return game_command::apply_west;