src/main/java/ru/alphatech/icfpc/game/Batch.java
changeset 96 8c40512777a1
parent 80 fcdce54b2f25
equal deleted inserted replaced
95:598cbc609683 96:8c40512777a1
    13 	
    13 	
    14 	public ICard card = null;
    14 	public ICard card = null;
    15 	public Slot  slot = null;
    15 	public Slot  slot = null;
    16 	
    16 	
    17 	public Batch(OperationType type, ICard card, Slot slot){
    17 	public Batch(OperationType type, ICard card, Slot slot){
       
    18 		if(type == null || card == null || slot == null)
       
    19 			throw new ICFPCException("Illegal constructor using!");
    18 		this.operationType = type;
    20 		this.operationType = type;
    19 		this.card = card;
    21 		this.card = card;
    20 		this.slot = slot;
    22 		this.slot = slot;
    21 	}
    23 	}
    22 
    24