blob: fa08a1b4756e58d83c59f5c4068a0508ad3532ff (
plain) (
blame)
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
|
package pokemon;
import java.io.Serializable;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import models.MonsterViewModel;
public class Game implements Runnable, Serializable {
boolean player1Turn;
long player1Id;
long player2Id;
MonsterViewModel monster1;
MonsterViewModel monster2;
int currentHp1;
int currentHp2;
int shield1;
int shield2;
SocketChannel []players;
public Game() {
super();
}
@Override
public void run() {
// TODO Auto-generated method stub
}
public long getPlayer1Id() {
return player1Id;
}
public void setPlayer1Id(long player1Id) {
this.player1Id = player1Id;
}
public long getPlayer2Id() {
return player2Id;
}
public void setPlayer2Id(long player2Id) {
this.player2Id = player2Id;
}
public MonsterViewModel getMonster1() {
return monster1;
}
public void setMonster1(MonsterViewModel monster1) {
this.monster1 = monster1;
}
public MonsterViewModel getMonster2() {
return monster2;
}
public void setMonster2(MonsterViewModel monster2) {
this.monster2 = monster2;
}
public int getCurrentHp1() {
return currentHp1;
}
public void setCurrentHp1(int currentHp1) {
this.currentHp1 = currentHp1;
}
public int getCurrentHp2() {
return currentHp2;
}
public void setCurrentHp2(int currentHp2) {
this.currentHp2 = currentHp2;
}
public int getShield1() {
return shield1;
}
public void setShield1(int shield1) {
this.shield1 = shield1;
}
public int getShield2() {
return shield2;
}
public void setShield2(int shield2) {
this.shield2 = shield2;
}
}
|