turtle@12: package ru.alphatech.icfpc.game; 0-range@4: turtle@28: import ru.alphatech.icfpc.cards.I; akhmetovlz@30: akhmetovlz@17: import ru.alphatech.icfpc.cards.ICard; akhmetovlz@17: 0-range@4: turtle@11: public class Player 0-range@4: { turtle@28: private Slot[] slots = new Slot[256]; akhmetovlz@30: int registers[] = new int[4]; turtle@28: turtle@28: public Player() turtle@28: { turtle@28: for(int i = 0; i < 255; i++) turtle@28: { turtle@28: slots[i].setVitality(10000); turtle@28: slots[i].putValue(new I()); turtle@28: } akhmetovlz@30: registers[0] = 0; akhmetovlz@30: registers[1] = 1; akhmetovlz@30: registers[2] = 2; akhmetovlz@30: registers[3] = 3; turtle@28: } turtle@28: turtle@11: public Slot getSlot(int i) turtle@11: { turtle@28: return slots[i]; turtle@11: } akhmetovlz@17: akhmetovlz@30: public Slot getRegisterByIndex(int registerIdex){ akhmetovlz@30: return getSlot( registers[registerIdex] ); akhmetovlz@30: } akhmetovlz@30: akhmetovlz@17: public void applyCardToSlot(ICard card, Slot slot){ akhmetovlz@17: throw new RuntimeException("Not impilemented yet."); akhmetovlz@17: } akhmetovlz@17: akhmetovlz@17: public void applySlotToCard(Slot slot, ICard card){ akhmetovlz@17: throw new RuntimeException("Not impilemented yet."); akhmetovlz@17: } akhmetovlz@19: akhmetovlz@19: public PlayerStatistic getStatistic(){ akhmetovlz@19: throw new RuntimeException("Not impilemented yet."); akhmetovlz@19: } akhmetovlz@30: akhmetovlz@30: 0-range@4: }