src/main/java/ru/alphatech/icfpc/game/Slot.java
changeset 80 fcdce54b2f25
parent 43 4ba83edc4361
child 106 643b85a8a16b
     1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Slot.java	Sun Jun 19 15:38:01 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Slot.java	Sun Jun 19 17:09:51 2011 +0400
     1.3 @@ -9,6 +9,18 @@
     1.4  
     1.5  	private IValue _value = new I();
     1.6  	
     1.7 +	private int id = -1;
     1.8 +	
     1.9 +	public int getId() {
    1.10 +		return id;
    1.11 +	}
    1.12 +
    1.13 +	public Slot(int id){
    1.14 +		if(id < 0 || id > 255)
    1.15 +			throw new ICFPCException();
    1.16 +		this.id = id;
    1.17 +	}
    1.18 +	
    1.19  	public void setVitality(int vitality)
    1.20  	{
    1.21  		_vitality = vitality;