src/main/java/ru/alphatech/icfpc/game/Slot.java
author indvdum
Sun, 19 Jun 2011 17:09:51 +0400
changeset 80 fcdce54b2f25
parent 43 4ba83edc4361
child 106 643b85a8a16b
permissions -rw-r--r--
* strategy && batches
     1 package ru.alphatech.icfpc.game;
     2 
     3 import ru.alphatech.icfpc.cards.I;
     4 
     5 
     6 public class Slot
     7 {
     8 	private int _vitality = 10000;
     9 
    10 	private IValue _value = new I();
    11 	
    12 	private int id = -1;
    13 	
    14 	public int getId() {
    15 		return id;
    16 	}
    17 
    18 	public Slot(int id){
    19 		if(id < 0 || id > 255)
    20 			throw new ICFPCException();
    21 		this.id = id;
    22 	}
    23 	
    24 	public void setVitality(int vitality)
    25 	{
    26 		_vitality = vitality;
    27 	}
    28 
    29 	public int getVitality()
    30 	{
    31 		return _vitality;	
    32 	}
    33 
    34 	public IValue getValue()
    35 	{
    36 		return _value;
    37 	}
    38 
    39 	public void putValue(IValue value)
    40 	{
    41 		_value = value;
    42 	}
    43 }