equal
deleted
inserted
replaced
4 |
4 |
5 |
5 |
6 public class Player |
6 public class Player |
7 { |
7 { |
8 private Slot[] slots = new Slot[256]; |
8 private Slot[] slots = new Slot[256]; |
9 int registers[] = new int[4]; |
|
10 |
9 |
11 public Player() |
10 public Player() |
12 { |
11 { |
13 for(int i = 0; i < 255; i++) |
12 for(int i = 0; i < 255; i++) |
14 { |
13 { |
15 slots[i] = new Slot(); |
14 slots[i] = new Slot(); |
16 } |
15 } |
17 registers[0] = 0; |
|
18 registers[1] = 1; |
|
19 registers[2] = 2; |
|
20 registers[3] = 3; |
|
21 } |
16 } |
22 |
17 |
23 public Slot getSlot(int i) |
18 public Slot getSlot(int i) |
24 { |
19 { |
25 return slots[i]; |
20 return slots[i]; |
26 } |
|
27 |
|
28 public Slot getRegisterByIndex(int registerIdex){ |
|
29 return getSlot( registers[registerIdex] ); |
|
30 } |
21 } |
31 |
22 |
32 public void applyCardToSlot(ICard card, Slot slot){ |
23 public void applyCardToSlot(ICard card, Slot slot){ |
33 throw new RuntimeException("Not impilemented yet."); |
24 throw new RuntimeException("Not impilemented yet."); |
34 } |
25 } |