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.

32 lines
564 B

4 years ago
  1. #ifndef SPELL_WARZ_BATTLE_HPP
  2. #define SPELL_WARZ_BATTLE_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 Battle
  10. {
  11. protected:
  12. static const int MAX_TURN = 100;
  13. static std::vector<Spell> SPELL_BOOK;
  14. int turn;
  15. int winner;
  16. Character &player1;
  17. Character &player2;
  18. void battleStartAnnounce();
  19. void battleEndAnnouce();
  20. void clearBuff();
  21. public:
  22. Battle(Character &p1, Character &p2);
  23. int getWinner();
  24. void start();
  25. };
  26. #endif