public override void ProcessOpponentAction(TargetableAction action) { var actionMessage = new ProtoAction { From = action.getContext().source.ToPosition(), To = action.getContext().target.ToPosition(), Id = ((Action)action).getId() }; var wrapperMessage = new WrapperMessage { Action = actionMessage }; ConnectionHandler.Instance.SendWebsocketMessage(wrapperMessage); }
public LazyDictionary <int, List <TargetableAction> > VisualizeAvailableTargetableActions(KVector2 indices) { var result = new LazyDictionary <int, List <TargetableAction> >(); List <Action> allActions = battle.GetAllValidActionFrom(indices); Fruiton kernelFruiton = battle.GetFruiton(indices); foreach (Action action in allActions) { VisualizeAction(action, kernelFruiton); TargetableAction castAction = action as TargetableAction; if (castAction != null) { result[action.getId()].Add(castAction); } } return(result); }
public abstract void ProcessOpponentAction(TargetableAction action);
public override void ProcessOpponentAction(TargetableAction action) { }