src/main/java/ru/alphatech/icfpc/game/Player.java
author Igor R. Nikitin <0-range@bazon.ru>
Sun, 19 Jun 2011 12:53:34 +0400
changeset 43 4ba83edc4361
parent 30 2579b2cd9446
child 48 7e49c679fc70
permissions -rw-r--r--
skdjhfkdjghkshgfkjsd
     1 package ru.alphatech.icfpc.game;
     2 
     3 import ru.alphatech.icfpc.cards.ICard;
     4 
     5 
     6 public class Player
     7 {
     8 	private Slot[] slots = new Slot[256];
     9 	int registers[] = new int[4];
    10 	
    11 	public Player()
    12     {
    13 		for(int i = 0; i < 255; i++)
    14 		{
    15 			slots[i] = new Slot();
    16 		}
    17 		registers[0] = 0;
    18 		registers[1] = 1;
    19 		registers[2] = 2;
    20 		registers[3] = 3;
    21     }
    22 	
    23 	public Slot getSlot(int i)
    24 	{
    25 		return slots[i];
    26 	}
    27 	
    28 	public Slot getRegisterByIndex(int registerIdex){
    29 		return getSlot( registers[registerIdex] );
    30 	}
    31 	
    32 	public void applyCardToSlot(ICard card, Slot slot){
    33 		throw new RuntimeException("Not impilemented yet.");
    34 	}
    35 	
    36 	public void applySlotToCard(Slot slot, ICard card){
    37 		throw new RuntimeException("Not impilemented yet.");
    38 	}
    39 	
    40 	public PlayerStatistic getStatistic(){
    41 		throw new RuntimeException("Not impilemented yet.");
    42 	}
    43 	
    44 	
    45 }