1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 11:14:05 2011 +0400
1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 11:51:08 2011 +0400
1.3 @@ -1,12 +1,14 @@
1.4 package ru.alphatech.icfpc.game;
1.5
1.6 import ru.alphatech.icfpc.cards.I;
1.7 +
1.8 import ru.alphatech.icfpc.cards.ICard;
1.9
1.10
1.11 public class Player
1.12 {
1.13 private Slot[] slots = new Slot[256];
1.14 + int registers[] = new int[4];
1.15
1.16 public Player()
1.17 {
1.18 @@ -15,6 +17,10 @@
1.19 slots[i].setVitality(10000);
1.20 slots[i].putValue(new I());
1.21 }
1.22 + registers[0] = 0;
1.23 + registers[1] = 1;
1.24 + registers[2] = 2;
1.25 + registers[3] = 3;
1.26 }
1.27
1.28 public Slot getSlot(int i)
1.29 @@ -22,6 +28,10 @@
1.30 return slots[i];
1.31 }
1.32
1.33 + public Slot getRegisterByIndex(int registerIdex){
1.34 + return getSlot( registers[registerIdex] );
1.35 + }
1.36 +
1.37 public void applyCardToSlot(ICard card, Slot slot){
1.38 throw new RuntimeException("Not impilemented yet.");
1.39 }
1.40 @@ -33,4 +43,6 @@
1.41 public PlayerStatistic getStatistic(){
1.42 throw new RuntimeException("Not impilemented yet.");
1.43 }
1.44 +
1.45 +
1.46 }