#ifndef SPELL_WARZ_USER_INTERFACE_HPP
|
|
#define SPELL_WARZ_USER_INTERFACE_HPP 1
|
|
|
|
#include <iostream>
|
|
#include <thread>
|
|
#include <chrono>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Character.hpp"
|
|
#include "Spell.hpp"
|
|
|
|
class UserInterface
|
|
{
|
|
protected:
|
|
static const int maxDay;
|
|
static const int maxMonth;
|
|
static const int maxYear;
|
|
|
|
static std::vector<std::string> dayName;
|
|
static std::vector<std::string> monthName;
|
|
|
|
static int day;
|
|
static int month;
|
|
static int year;
|
|
|
|
public:
|
|
static void print(std::string msg, int interval = 500);
|
|
static void println(std::string msg, int interval = 500);
|
|
static void printByChar(std::string msg, int interval = 50);
|
|
|
|
static void welcomeMessage();
|
|
static void epilogue();
|
|
static void menu();
|
|
static void nextDay();
|
|
static void characterInfo(Character *);
|
|
static void enemiesInfo(std::vector<Character *> &);
|
|
|
|
static std::string dateString();
|
|
static int getNumber(std::string, int, int);
|
|
static Character *characterCreation();
|
|
|
|
static bool isGameOver();
|
|
};
|
|
|
|
#endif
|