equal
deleted
inserted
replaced
6 |
6 |
7 |
7 |
8 |
8 |
9 public class Player |
9 public class Player |
10 { |
10 { |
|
11 private int playerNumber = -1; |
|
12 |
11 private Slot[] slots = new Slot[256]; |
13 private Slot[] slots = new Slot[256]; |
12 private Player myOpponent = null; |
14 private Player myOpponent = null; |
13 |
15 |
14 public Player() |
16 public Player() |
15 { |
17 { |
17 { |
19 { |
18 slots[i] = new Slot(i); |
20 slots[i] = new Slot(i); |
19 } |
21 } |
20 } |
22 } |
21 |
23 |
|
24 public int getPlayerNumber() { |
|
25 return playerNumber; |
|
26 } |
|
27 |
|
28 public void setPlayerNumber(int playerNumber) { |
|
29 this.playerNumber = playerNumber; |
|
30 } |
|
31 |
22 public Player getMyOpponent() { |
32 public Player getMyOpponent() { |
23 return myOpponent; |
33 return myOpponent; |
24 } |
34 } |
25 |
35 |
26 public void setMyOpponent(Player myOpponent) { |
36 public void setMyOpponent(Player myOpponent) { |
31 { |
41 { |
32 return slots[i]; |
42 return slots[i]; |
33 } |
43 } |
34 |
44 |
35 public PlayerStatistic getStatistic(){ |
45 public PlayerStatistic getStatistic(){ |
36 throw new RuntimeException("Not impilemented yet."); |
46 throw new RuntimeException("Not implemented yet."); |
37 } |
47 } |
38 |
48 |
39 public void applyBatch(Batch batch){ |
49 public void applyBatch(Batch batch){ |
40 Run.setAutoMode(false); |
50 Run.setAutoMode(false); |
41 Run.resetCallCount(); |
51 Run.resetCallCount(); |