diff -r 743564afa994 -r 5b57bc39cc92 src/main/java/ru/alphatech/icfpc/game/Player.java --- a/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 12:12:55 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 12:13:34 2011 +0400 @@ -1,13 +1,35 @@ package ru.alphatech.icfpc.game; +import ru.alphatech.icfpc.cards.I; + import ru.alphatech.icfpc.cards.ICard; public class Player { + private Slot[] slots = new Slot[256]; + int registers[] = new int[4]; + + public Player() + { + for(int i = 0; i < 255; i++) + { + slots[i].setVitality(10000); + slots[i].putValue(new I()); + } + registers[0] = 0; + registers[1] = 1; + registers[2] = 2; + registers[3] = 3; + } + public Slot getSlot(int i) { - throw new RuntimeException("Not impilemented yet."); + return slots[i]; + } + + public Slot getRegisterByIndex(int registerIdex){ + return getSlot( registers[registerIdex] ); } public void applyCardToSlot(ICard card, Slot slot){ @@ -21,4 +43,6 @@ public PlayerStatistic getStatistic(){ throw new RuntimeException("Not impilemented yet."); } + + }