added: cmdline args handling
This commit is contained in:
22
src/log.h
22
src/log.h
@ -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
|
||||
|
Reference in New Issue
Block a user