format
This commit is contained in:
24
src/log.h
24
src/log.h
@ -9,20 +9,20 @@
|
||||
|
||||
class logger final {
|
||||
private:
|
||||
std::ofstream out;
|
||||
std::vector<char> contents;
|
||||
std::ofstream out;
|
||||
std::vector<char> contents;
|
||||
public:
|
||||
logger(std::ofstream &&new_out);
|
||||
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(const character &player);
|
||||
void print_chlist(const character_list &chlist);
|
||||
void print_gold(const gold_list &gold_piles);
|
||||
void print_potions(const potion_list &potions);
|
||||
// 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(const character &player);
|
||||
void print_chlist(const character_list &chlist);
|
||||
void print_gold(const gold_list &gold_piles);
|
||||
void print_potions(const potion_list &potions);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user