-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnimalsCard.java
70 lines (60 loc) · 1.63 KB
/
AnimalsCard.java
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* This class is for the animals cards
* Every onimals has its own atributes but there are the same with different numbres
* @author Mohammad Jafar Saberi
* @version 1.0
*/
public class AnimalsCard {
private String cardName;
private int animalsNumber;
private int normalImpact;
private int strongImpact;
private int energy;
private int primaryEnergy;
private int blood;
/**
* THis the constructor of the class that takes four parameters
* @param animalsNumber
* @param normalImpact
* @param strongImpact
* @param energy
* @param blood
* @param cardName
*/
public AnimalsCard(int animalsNumber, int normalImpact, int strongImpact, int energy, int primaryEnergy ,int blood, String cardName) {
this.animalsNumber = animalsNumber;
this.normalImpact = normalImpact;
this.strongImpact = strongImpact;
this.energy = energy;
this.blood = blood;
this.cardName = cardName;
this.primaryEnergy = primaryEnergy;
}
public int getPrimaryEnergy() {
return primaryEnergy;
}
public int getAnimalsNumber() {
return animalsNumber;
}
public int getNormalImpact() {
return normalImpact;
}
public int getStrongImpact() {
return strongImpact;
}
public int getEnergy() {
return energy;
}
public int getBlood() {
return blood;
}
public void setEnergy(int energy) {
this.energy = energy;
}
public void setBlood(int blood) {
this.blood = blood;
}
public String getCardName() {
return cardName;
}
}