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
turtle@12
     1
package ru.alphatech.icfpc.game;
0-range@4
     2
akhmetovlz@17
     3
import ru.alphatech.icfpc.cards.ICard;
akhmetovlz@17
     4
0-range@4
     5
turtle@11
     6
public class Player
0-range@4
     7
{
turtle@28
     8
	private Slot[] slots = new Slot[256];
akhmetovlz@30
     9
	int registers[] = new int[4];
turtle@28
    10
	
turtle@28
    11
	public Player()
turtle@28
    12
    {
turtle@28
    13
		for(int i = 0; i < 255; i++)
turtle@28
    14
		{
0-range@43
    15
			slots[i] = new Slot();
turtle@28
    16
		}
akhmetovlz@30
    17
		registers[0] = 0;
akhmetovlz@30
    18
		registers[1] = 1;
akhmetovlz@30
    19
		registers[2] = 2;
akhmetovlz@30
    20
		registers[3] = 3;
turtle@28
    21
    }
turtle@28
    22
	
turtle@11
    23
	public Slot getSlot(int i)
turtle@11
    24
	{
turtle@28
    25
		return slots[i];
turtle@11
    26
	}
akhmetovlz@17
    27
	
akhmetovlz@30
    28
	public Slot getRegisterByIndex(int registerIdex){
akhmetovlz@30
    29
		return getSlot( registers[registerIdex] );
akhmetovlz@30
    30
	}
akhmetovlz@30
    31
	
akhmetovlz@17
    32
	public void applyCardToSlot(ICard card, Slot slot){
akhmetovlz@17
    33
		throw new RuntimeException("Not impilemented yet.");
akhmetovlz@17
    34
	}
akhmetovlz@17
    35
	
akhmetovlz@17
    36
	public void applySlotToCard(Slot slot, ICard card){
akhmetovlz@17
    37
		throw new RuntimeException("Not impilemented yet.");
akhmetovlz@17
    38
	}
akhmetovlz@19
    39
	
akhmetovlz@19
    40
	public PlayerStatistic getStatistic(){
akhmetovlz@19
    41
		throw new RuntimeException("Not impilemented yet.");
akhmetovlz@19
    42
	}
akhmetovlz@30
    43
	
akhmetovlz@30
    44
	
0-range@4
    45
}