您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

33 行
564 B

#ifndef SPELL_WARZ_BATTLE_HPP
#define SPELL_WARZ_BATTLE_HPP 1
#include <iostream>
#include <thread>
#include <chrono>
#include "Character.hpp"
#include "Spell.hpp"
#include "UserInterface.hpp"
class Battle
{
protected:
static const int MAX_TURN = 100;
static std::vector<Spell> SPELL_BOOK;
int turn;
int winner;
Character &player1;
Character &player2;
void battleStartAnnounce();
void battleEndAnnouce();
void clearBuff();
public:
Battle(Character &p1, Character &p2);
int getWinner();
void start();
};
#endif