src/main/java/ru/alphatech/icfpc/game/Slot.java
changeset 80 fcdce54b2f25
parent 43 4ba83edc4361
child 106 643b85a8a16b
equal deleted inserted replaced
74:b277f6c31f5f 80:fcdce54b2f25
     6 public class Slot
     6 public class Slot
     7 {
     7 {
     8 	private int _vitality = 10000;
     8 	private int _vitality = 10000;
     9 
     9 
    10 	private IValue _value = new I();
    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 	}
    11 	
    23 	
    12 	public void setVitality(int vitality)
    24 	public void setVitality(int vitality)
    13 	{
    25 	{
    14 		_vitality = vitality;
    26 		_vitality = vitality;
    15 	}
    27 	}