You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
641 B

  1. #ifndef SPELL_WARZ_BATTLEINTERFACE_HPP
  2. #define SPELL_WARZ_BATTLEINTERFACE_HPP 1
  3. #include <iostream>
  4. #include <thread>
  5. #include <chrono>
  6. #include "Character.hpp"
  7. #include "Spell.hpp"
  8. #include "UserInterface.hpp"
  9. class BattleInterface
  10. {
  11. protected:
  12. static const int maxTurn;
  13. int turn;
  14. Character *player1;
  15. Character *player2;
  16. Character *winner;
  17. Character *loser;
  18. void battleStartAnnounce();
  19. void battleEndAnnouce();
  20. void clearBuff();
  21. public:
  22. BattleInterface();
  23. BattleInterface(Character *p1, Character *p2);
  24. void start();
  25. Character *getWinner();
  26. Character *getLoser();
  27. };
  28. #endif