Пример #1
0
        private void Engage(String[] targetIDs, String attackerID, String capabilityName, int percentageApplied)
        {
            int x = 0;

            try
            {
                for (x = 0; x < targetIDs.Length; x++)
                {
                    _connection.SendAttackObject(attackerID, targetIDs[x], capabilityName, percentageApplied);
                }
            }
            catch (Exception e)
            {
                UpdateTextBox(String.Format("Error in Engage({0},{1},{2}) -> {3}", targetIDs[x], attackerID, capabilityName, e.Message));
            }
        }