Ejemplo n.º 1
0
        public static void AttackAndTrySkills(IAgentInfo target, IAgent engineer, IDeck deck, IAgentUpdateInfo update)
        {
            if (target == null)
            {
                deck.Trace("Target is null",TraceType.Information);
                return;
            }

            deck.Trace(string.Format("Attack: Owner {0} Level {1} Stack {2} at {3}:{4}:{5}", target.Owner, target.Level,  target.Stack,
               update.Node.Row, update.Node.Column, update.Node.Layer), TraceType.Information);

            engineer.Attack(target);

            Skills(target, update, engineer);
        }