src/main/java/ru/alphatech/icfpc/game/Batch.java
changeset 96 8c40512777a1
parent 80 fcdce54b2f25
     1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Batch.java	Sun Jun 19 17:47:28 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Batch.java	Sun Jun 19 18:16:08 2011 +0400
     1.3 @@ -15,6 +15,8 @@
     1.4  	public Slot  slot = null;
     1.5  	
     1.6  	public Batch(OperationType type, ICard card, Slot slot){
     1.7 +		if(type == null || card == null || slot == null)
     1.8 +			throw new ICFPCException("Illegal constructor using!");
     1.9  		this.operationType = type;
    1.10  		this.card = card;
    1.11  		this.slot = slot;