# HG changeset patch # User akhmetovlz # Date 1308469868 -14400 # Node ID 2579b2cd944686602767f309008a414b8805c1bf # Parent 7ff8ba5fb4cf74321c24e87969bea87c98054451 регистры diff -r 7ff8ba5fb4cf -r 2579b2cd9446 src/main/java/ru/alphatech/icfpc/game/Player.java --- a/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 11:14:05 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 11:51:08 2011 +0400 @@ -1,12 +1,14 @@ 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() { @@ -15,6 +17,10 @@ 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) @@ -22,6 +28,10 @@ return slots[i]; } + public Slot getRegisterByIndex(int registerIdex){ + return getSlot( registers[registerIdex] ); + } + public void applyCardToSlot(ICard card, Slot slot){ throw new RuntimeException("Not impilemented yet."); } @@ -33,4 +43,6 @@ public PlayerStatistic getStatistic(){ throw new RuntimeException("Not impilemented yet."); } + + }