-
Notifications
You must be signed in to change notification settings - Fork 1
/
AnimationAttaque.java
37 lines (30 loc) · 977 Bytes
/
AnimationAttaque.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
/**
* Write a description of class Animation here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class AnimationAttaque extends Animation
{
private int attaquantPVfin;
private int victimePVfin;
private Unite aAttaquant;
private Unite aVictime;
/**
* Constructor for objects of class Animation
*/
public AnimationAttaque(final Unite attaquant, final Unite victime,final int pvA,final int pvV)
{
aAttaquant = attaquant;
aVictime = victime;
attaquantPVfin=pvA;
victimePVfin=pvV;
aType="attaque";
}
public void setAttaquant (final Unite att) {aAttaquant = att;}
public void setVictime (final Unite vic) {aVictime = vic;}
public Unite getAttaquant() {return aAttaquant;}
public Unite getVictime() {return aVictime;}
public int getPVatt() {return attaquantPVfin;}
public int getPVvic() {return victimePVfin;}
}