-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMove.hpp
41 lines (41 loc) · 1.23 KB
/
Move.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include ".\exType.hpp"
#include ".\isYESorNO.hpp"
class Move{
private:
std::string MoveName;
Type MoveType;
Cat cat;
int Pow;
int Acc;
protected:
public:
Move(const std::string n,Type t,Cat c,int p,int a);
Move(){}
void setMove(const std::string n,Type t,Cat c,int p,int a){
MoveName = n;
MoveType = t;
cat = c;
Pow = p;
Acc = a;
}
void setMove(Move x){
MoveName = x.getMoveName();
MoveType = x.getMoveType();
cat = x.getCat();
Pow = x.getPow();
Acc = x.getAcc();
}
std::string getMoveName(){return MoveName;}
Type getMoveType(){return MoveType;}
Cat getCat(){return cat;}
int getPow(){return Pow;}
int getAcc(){return Acc;}
void showMoveInfo(){
std::cout<<getMoveName()<<std::endl;
std::cout<<"Type: "<<std::flush; exType(getMoveType());std::cout<<std::endl;
std::cout<<"Category: "<<getCat()<<std::endl;
std::cout<<"Power: "<<getPow()<<std::endl;
std::cout<<"Actually: "<<getAcc()<<std::endl;
}
};