added: cmdline args handling

This commit is contained in:
2024-07-06 01:39:39 -04:00
parent 116d068765
commit eb773405a6
11 changed files with 206 additions and 21 deletions

View File

@ -1,6 +1,26 @@
#ifndef __LOG_H__
#define __LOG_H__
#include <fstream>
#include <string>
#include <memory>
#include "constants.h"
#include "characters.h"
#include "objects.h"
class logger;
class logger final {
private:
std::ofstream out;
public:
logger(std::ofstream &&new_out);
// called once every turn
void render();
void print_char(const position &pos, const char ch);
void print_str(const position &pos, const std::string &str);
void print_turn(const unsigned turn);
void print_player(std::unique_ptr<character> &player);
void print_chlist(const character_list &chlist);
void print_potions(const potion_list &potions);
};
#endif