package mahjong.engine; /** * Created by joe on 12/3/14. */ public class Action { // TODO Generic action // Requirement: printable,parseable,coverage // Coverage: System,player public enum Type {System,Player}; // System info merely reflect system state // Player info pertaining to players; public enum Place {Info,East,South,West,North}; public enum Act {Info,CardDraw,CardPut,Aside}; Type type; Act act; Place place; String message; public Type getType() { return type; } public Action(Type type,Place place,Act act,String message) { this.type = type; this.place = place; this.act = act; this.message = message; } public Action(String str) { } @Override public String toString() { return super.toString(); } }