WraitheDX / realms_shattered

This is a CLI (command line interface) text RPG programmed in C++.
11 stars 6 forks source link

Adding action log #42

Closed WraitheDX closed 4 years ago

WraitheDX commented 4 years ago

Create class ActionLog. Class should contain a vector of strings. Class should have a max vector size, and when it adds a string and becomes bigger than that size, delete the oldest string. Any string added to the ActionLog should also print to the Logger using the enum LOG_LEVEL_ACTION_LOG, which will need to be added to the LoggerLevel enum class, and added to the Logger::log() function's switch statement.

Displaying the ActionLog: ActionLog should display at the very bottom of the screen, beneath player command input. Positioning of box and lines should be relative to Console::height_get(). Ex (position_y = Console::height_get() - number_of_lines ) Should print box around combat log using Console::print_box(). Should print lines using Console::Print() Should print newest action on top, oldest on bottom.

WraitheDX commented 4 years ago

Handling this issue now. ActionLog has been implemented.