-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonster.java
More file actions
40 lines (34 loc) · 739 Bytes
/
Monster.java
File metadata and controls
40 lines (34 loc) · 739 Bytes
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
import java.util.Scanner;
public class Monster {
private String nom;
private int Force;
private int Adresse;
private int Resistance;
private int life;
private int px;
public Monster (String nom) {
this.nom = nom;
this.Force = 5;
this.Adresse = 5;
this.Resistance = 5;
this.px = 100;
this.life = 50;
}
/*public void Deplacer() {
Scanner sc = new Scanner(System.in);
System.out.println("1.Haut 2.Droite 3.Bas 4.Gauche ");
int x =sc.nextInt();
p.SetPosition(x);
this.PA = PA -2;
}*/
public int CombatM(int degat) {
this.life = this.life-degat;
return this.life;
}
public int getlife() {
return this.life;
}
public int getAdresse() {
return this.Adresse;
}
}