public void execute(BattleAction action, BattleContext context) { var type = action.GetType(); var command = _commandMap[type]; if (command != null) { command.execute(action, context); } }
public virtual void execute(BattleAction action, BattleContext context) { }
public void enqueue(BattleAction action) { _queue.enqueue(action); }