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