src/main/java/ru/alphatech/icfpc/game/Player.java
changeset 28 7ff8ba5fb4cf
parent 19 624552552ae7
child 30 2579b2cd9446
equal deleted inserted replaced
27:0e21db22ecec 28:7ff8ba5fb4cf
     1 package ru.alphatech.icfpc.game;
     1 package ru.alphatech.icfpc.game;
     2 
     2 
       
     3 import ru.alphatech.icfpc.cards.I;
     3 import ru.alphatech.icfpc.cards.ICard;
     4 import ru.alphatech.icfpc.cards.ICard;
     4 
     5 
     5 
     6 
     6 public class Player
     7 public class Player
     7 {
     8 {
       
     9 	private Slot[] slots = new Slot[256];
       
    10 	
       
    11 	public Player()
       
    12     {
       
    13 		for(int i = 0; i < 255; i++)
       
    14 		{
       
    15 			slots[i].setVitality(10000);
       
    16 			slots[i].putValue(new I());
       
    17 		}
       
    18     }
       
    19 	
     8 	public Slot getSlot(int i)
    20 	public Slot getSlot(int i)
     9 	{
    21 	{
    10 		throw new RuntimeException("Not impilemented yet.");
    22 		return slots[i];
    11 	}
    23 	}
    12 	
    24 	
    13 	public void applyCardToSlot(ICard card, Slot slot){
    25 	public void applyCardToSlot(ICard card, Slot slot){
    14 		throw new RuntimeException("Not impilemented yet.");
    26 		throw new RuntimeException("Not impilemented yet.");
    15 	}
    27 	}