-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnemy1
More file actions
105 lines (73 loc) · 2 KB
/
Copy pathEnemy1
File metadata and controls
105 lines (73 loc) · 2 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package com.mycompany.game;
public class Enemy1 {
private String nome;
private int ataqueb,defesab,pvb,forcab,constb,agilityb,destrezab;
public Enemy1(String nome, int ataqueb, int defesab, int pvb, int forcab, int constb, int agilityb, int destrezab) {
this.nome = nome;
this.ataqueb = ataqueb;
this.defesab = defesab;
this.pvb = pvb;
this.forcab = forcab;
this.constb = constb;
this.agilityb = agilityb;
this.destrezab = destrezab;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public int getAtaqueb() {
return ataqueb;
}
public void setAtaqueb(int ataqueb) {
this.ataqueb = ataqueb;
}
public int getDefesab() {
return defesab;
}
public void setDefesab(int defesab) {
this.defesab = defesab;
}
public int getPvb() {
return pvb;
}
public void setPvb(int pvb) {
this.pvb = pvb;
}
public int getForcab() {
return forcab;
}
public void setForcab(int forcab) {
this.forcab = forcab;
}
public int getConstb() {
return constb;
}
public void setConstb(int constb) {
this.constb = constb;
}
public int getAgilityb() {
return agilityb;
}
public void setAgilityb(int agilityb) {
this.agilityb = agilityb;
}
public int getDestrezab() {
return destrezab;
}
public void setDestrezab(int destrezab) {
this.destrezab = destrezab;
}
public boolean estavivo(){
return pvb >0;
}
public void detalhesenemy1base(){
System.out.println("Nome do inimigo: " + nome);
System.out.println("Constituição base: " + constb);
System.out.println("forcabase: " + forcab);
System.out.println("pv base: " + pvb);
System.out.println("Agility base: " + agilityb);
}
}