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 this.operationType = type;
24 public String toString() {
25 if(operationType == null || card == null || slot == null)
26 throw new ICFPCException();
27 StringBuilder ret = new StringBuilder();
28 switch(operationType){
31 ret.append(card.getName() + "\n");
32 ret.append(slot.getId() + "\n");
36 ret.append(slot.getId() + "\n");
37 ret.append(card.getName() + "\n");
40 return ret.toString();