equal
deleted
inserted
replaced
1 package ru.alphatech.icfpc.game; |
1 package ru.alphatech.icfpc.game; |
2 |
2 |
3 import ru.alphatech.icfpc.cards.I; |
3 import ru.alphatech.icfpc.cards.I; |
|
4 |
4 import ru.alphatech.icfpc.cards.ICard; |
5 import ru.alphatech.icfpc.cards.ICard; |
5 |
6 |
6 |
7 |
7 public class Player |
8 public class Player |
8 { |
9 { |
9 private Slot[] slots = new Slot[256]; |
10 private Slot[] slots = new Slot[256]; |
|
11 int registers[] = new int[4]; |
10 |
12 |
11 public Player() |
13 public Player() |
12 { |
14 { |
13 for(int i = 0; i < 255; i++) |
15 for(int i = 0; i < 255; i++) |
14 { |
16 { |
15 slots[i].setVitality(10000); |
17 slots[i].setVitality(10000); |
16 slots[i].putValue(new I()); |
18 slots[i].putValue(new I()); |
17 } |
19 } |
|
20 registers[0] = 0; |
|
21 registers[1] = 1; |
|
22 registers[2] = 2; |
|
23 registers[3] = 3; |
18 } |
24 } |
19 |
25 |
20 public Slot getSlot(int i) |
26 public Slot getSlot(int i) |
21 { |
27 { |
22 return slots[i]; |
28 return slots[i]; |
|
29 } |
|
30 |
|
31 public Slot getRegisterByIndex(int registerIdex){ |
|
32 return getSlot( registers[registerIdex] ); |
23 } |
33 } |
24 |
34 |
25 public void applyCardToSlot(ICard card, Slot slot){ |
35 public void applyCardToSlot(ICard card, Slot slot){ |
26 throw new RuntimeException("Not impilemented yet."); |
36 throw new RuntimeException("Not impilemented yet."); |
27 } |
37 } |
31 } |
41 } |
32 |
42 |
33 public PlayerStatistic getStatistic(){ |
43 public PlayerStatistic getStatistic(){ |
34 throw new RuntimeException("Not impilemented yet."); |
44 throw new RuntimeException("Not impilemented yet."); |
35 } |
45 } |
|
46 |
|
47 |
36 } |
48 } |