Exemplo n.º 1
0
        public void execute(BattleAction action, BattleContext context)
        {
            var type    = action.GetType();
            var command = _commandMap[type];

            if (command != null)
            {
                command.execute(action, context);
            }
        }
Exemplo n.º 2
0
 public virtual void execute(BattleAction action, BattleContext context)
 {
 }
Exemplo n.º 3
0
 public void enqueue(BattleAction action)
 {
     _queue.enqueue(action);
 }