-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPersonagem
More file actions
131 lines (95 loc) · 2.53 KB
/
Personagem
File metadata and controls
131 lines (95 loc) · 2.53 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.mycompany.game;
public class Personagem {
private String nome;
private int ataqueb,defesab,pvb,forcab,constb,agilityb,destrezab,pontosbase,pontosrecomp;
private int danoataque;
public Personagem(){
this.forcab = 10;
this.defesab = 10;
this.constb = 10;
this.destrezab = 10;
this.agilityb = 10;
this.pvb = 0;
this.pontosbase = 10;
this.pontosrecomp= 5;
this.danoataque = 0;
}
public void setPontosbase(int pontosbase) {
this.pontosbase = pontosbase;
}
public void setPontosrecomp(int pontosrecomp) {
this.pontosrecomp = pontosrecomp;
}
public void setForcab(int forcab) {
this.forcab = forcab;
}
public void setConstb(int constb) {
this.constb = constb;
}
public void setAgilityb(int agilityb) {
this.agilityb = agilityb;
}
public void setDestrezab(int destrezab) {
this.destrezab = destrezab;
}
public Personagem(String nome) {
if(nome.length() > 0){
this.nome = nome;}
}
public int getPontosbase() {
return pontosbase;
}
public int getPontosrecomp() {
return pontosrecomp;
}
public void setPvb(int pvb) {
this.pvb = pvb;
}
public void detalhespersonagembase(){
System.out.println("Nome do personagem: " + 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);
System.out.println("Destreza base: " + destrezab);
}
public void setNome(String nome) {
this.nome = nome;
}
public String getNome() {
return nome;
}
public int getAtaqueb() {
return ataqueb;
}
public int getDefesab() {
return defesab;
}
public int getPvb() {
return pvb;
}
public int getForcab() {
return forcab;
}
public int getConstb() {
return constb;
}
public int getAgilityb() {
return agilityb;
}
public int getDestrezab() {
return destrezab;
}
public boolean estavivo(){
return pvb >0;
}
public int getDanoataque() {
return danoataque;
}
public void setDanoataque(int danoataque) {
this.danoataque = danoataque;
}
public void setDefesab(int defesab) {
this.defesab = defesab;
}
}