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