summaryrefslogtreecommitdiff
path: root/sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java
blob: 5599ddb0760fecca03d627599f334d4fdae57b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package tp7;

public class Persoinvisible extends Personnage {
	private Boolean visible;
	private int invtime;
	private int cd;
	public void devenirInvisible() {
		visible=false;
		invtime=5;
	}
	public void devenirVisible() {
		visible = true;
		invtime=0;
		cd = 5;
	}
	@Todo(type="Incroyable", version="0.12", dureeapprox=120)
	
	public Persoinvisible (String nom, int point, int Up, Boolean visible, int invtime, int cd) {
		super(nom,point,Up);
		this.visible=visible;
		this.invtime=invtime;
		this.cd=cd;
	}
}