1 package ru.alphatech.icfpc.game;
3 import ru.alphatech.icfpc.cards.ICard;
7 public enum OperationType {
12 OperationType operationType;
14 public ICard card = null;
15 public Slot slot = null;
17 public Batch(OperationType type, ICard card, Slot slot){
18 if(type == null || card == null || slot == null)
19 throw new ICFPCException("Illegal constructor using!");
20 this.operationType = type;
26 public String toString() {
27 if(operationType == null || card == null || slot == null)
28 throw new ICFPCException();
29 StringBuilder ret = new StringBuilder();
30 switch(operationType){
33 ret.append(card.getName() + "\n");
34 ret.append(slot.getId() + "\n");
38 ret.append(slot.getId() + "\n");
39 ret.append(card.getName() + "\n");
42 return ret.toString();