From 9fe033ea88c2f705ec18c232873d056e0c229d72 Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:05:53 +0200 Subject: Initial commit --- .../HLIN505/src/tp7/Persoinvisible.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java (limited to 'sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java') diff --git a/sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java b/sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java new file mode 100644 index 0000000..5599ddb --- /dev/null +++ b/sem_5/HLIN505_Java/HLIN505/src/tp7/Persoinvisible.java @@ -0,0 +1,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; + } +} -- cgit v1.2.3