Beispiel #1
0
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            switch (commandWords[1])
            {
            case "PowerCatalyst":
                var powerCatalyst = new PowerCatalyst();
                GetUnit(commandWords[2]).AddSupplement(powerCatalyst);
                break;

            case "HealthCatalyst":
                var healthCatalyst = new HealthCatalyst();
                GetUnit(commandWords[2]).AddSupplement(healthCatalyst);
                break;

            case "AggressionCatalyst":
                var agressionCatalyst = new AggressionCatalyst();
                GetUnit(commandWords[2]).AddSupplement(agressionCatalyst);
                break;

            case "Weapon":
                var weapon = new Weapon();
                GetUnit(commandWords[2]).AddSupplement(weapon);
                break;

            default:
                base.ExecuteAddSupplementCommand(commandWords);
                break;
            }
        }
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            var unit = this.GetUnit(commandWords[2]);
            ISupplement supplement;

            switch (commandWords[1])
            {
                case "Weapon":
                    supplement = new Weapon();
                    break;
                case "PowerCatalyst":
                    supplement = new PowerCatalyst();
                    break;
                case "HealthCatalyst":
                    supplement = new HealthCatalyst();
                    break;
                case "AggressionCatalyst":
                    supplement = new AggressionCatalyst();
                    break;
                default:
                    throw new ArgumentException("Unsupported command", commandWords[1]);
            }

            unit.AddSupplement(supplement);
        }
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            var supplementType = commandWords[1];

            ISupplement supplement = null;

            switch (supplementType)
            {
            case "AggressionCatalyst": supplement = new AggressionCatalyst();
                break;

            case "PowerCatalyst": supplement = new PowerCatalyst();
                break;

            case "HealthCatalyst": supplement = new HealthCatalyst();
                break;

            case "Weapon": supplement = new Weapon();
                break;

            default: break;
            }

            var unitId = commandWords[2];
            var unit   = this.GetUnit(unitId);

            if (unit != null)
            {
                unit.AddSupplement(supplement);
            }
        }
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            ISupplement supplement;
            Unit        unit = GetUnit(commandWords[2]);

            switch (commandWords[1])
            {
            case "PowerCatalyst":
                supplement = new PowerCatalyst();
                break;

            case "AggressionCatalyst":
                supplement = new AggressionCatalyst();
                break;

            case "HealthCatalyst":
                supplement = new HealthCatalyst();
                break;

            case "Weapon":
                supplement = new Weapon();
                break;

            default:
                throw new ArgumentException("No such supplement");
            }

            unit.AddSupplement(supplement);
        }
Beispiel #5
0
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            switch (commandWords[1])
            {
            case "AggressionCatalyst":
                var aggCatalyst = new AggressionCatalyst();
                this.GetUnit(commandWords[2]).AddSupplement(aggCatalyst);
                break;

            case "PowerCatalyst":
                var powerCatalyst = new PowerCatalyst();
                this.GetUnit(commandWords[2]).AddSupplement(powerCatalyst);
                break;

            case "HealthCatalyst":
                var healthCatalyst = new HealthCatalyst();
                this.GetUnit(commandWords[2]).AddSupplement(healthCatalyst);
                break;

            case "Weapon":
                var weapon = new Weapon();
                this.GetUnit(commandWords[2]).AddSupplement(weapon);
                break;

            //case "InfestationSpores":
            //    var infSpores = new InfestationSpores();
            //    this.GetUnit(commandWords[2]).AddSupplement(infSpores);
            //    break;
            default:
                break;
            }
        }
Beispiel #6
0
        protected virtual void ExecuteAddSupplementCommand(string[] commandWords)
        {
            Unit dUnit = GetUnit(commandWords[2]);

            switch (commandWords[1])
            {
            case "AggressionCatalyst":
                var aggressionSupplement = new AggressionCatalyst();
                dUnit.AddSupplement(aggressionSupplement);
                break;

            case "HealthCatalyst":
                var healthSupplement = new HealthCatalyst();
                dUnit.AddSupplement(healthSupplement);
                break;

            case "PowerCatalyst":
                var powerSupplement = new PowerCatalyst();
                dUnit.AddSupplement(powerSupplement);
                break;

            case "Weapon":
                var weaponSupplement = new Weapon();
                dUnit.AddSupplement(weaponSupplement);
                break;

            default:
                throw new NotImplementedException();
            }
        }
 protected override void ExecuteAddSupplementCommand(string[] commandWords)
 {
     switch (commandWords[1])
     {
         case "PowerCatalyst":
             var powerCatalyst = new PowerCatalyst();
             Unit targetUnit = this.GetUnit(commandWords[2]);
             targetUnit.AddSupplement(powerCatalyst);
             break;
         case "HealthCatalyst":
             var healthCatalyst = new HealthCatalyst();
             targetUnit = this.GetUnit(commandWords[2]);
             targetUnit.AddSupplement(healthCatalyst);
             break;
         case "AggressionInhibitor":
             var aggressionCatalyst = new AggressionCatalyst();
             targetUnit = this.GetUnit(commandWords[2]);
             targetUnit.AddSupplement(aggressionCatalyst);
             break;
         case "Weapon":
             var weapon = new Weapon();
             targetUnit = this.GetUnit(commandWords[2]);
             targetUnit.AddSupplement(weapon);
             break;
         default:
             break;
     }
 }
Beispiel #8
0
 protected virtual void ExecuteAddSupplementCommand(string[] commandWords)
 {
     var unit = this.GetUnit(commandWords[2]); ;
     switch (commandWords[1])
     {
         case "PowerCatalyst":
             var powerCatalyst = new PowerCatalyst();
             unit.AddSupplement(powerCatalyst);
             break;
         case "HealthCatalyst":
             var healthCatalyst = new HealthCatalyst();
             unit.AddSupplement(healthCatalyst);
             break;
         case "AggressionCatalyst":
             var aggressionCatalyst = new AggressionCatalyst();
             unit.AddSupplement(aggressionCatalyst);
             break;
         case "WeaponrySkill":
             var weaponrySkill = new WeaponrySkill();
             unit.AddSupplement(weaponrySkill);
             break;
         case "Weapon":
             var weapon = new Weapon();
             unit.AddSupplement(weapon);
             break;
         default:
             break;
     }
 }
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            var supplementType = commandWords[1];

            ISupplement supplement = null;
            switch (supplementType)
            {
                case "AggressionCatalyst": supplement = new AggressionCatalyst();
                    break;
                case "PowerCatalyst": supplement = new PowerCatalyst();
                    break;
                case "HealthCatalyst": supplement = new HealthCatalyst();
                    break;
                case "Weapon": supplement = new Weapon();
                    break;
                default: break;
            }

            var unitId = commandWords[2];
            var unit = this.GetUnit(unitId);
            if (unit != null)
            {
                unit.AddSupplement(supplement);
            }
        }
Beispiel #10
0
 protected override void ExecuteAddSupplementCommand(string[] commandWords)
 {
     switch (commandWords[1])
     {
         case "AggressionCatalyst":
             var aggCatalyst = new AggressionCatalyst();
             this.GetUnit(commandWords[2]).AddSupplement(aggCatalyst);
             break;
         case "PowerCatalyst":
             var powerCatalyst = new PowerCatalyst();
             this.GetUnit(commandWords[2]).AddSupplement(powerCatalyst);
             break;
         case "HealthCatalyst":
             var healthCatalyst = new HealthCatalyst();
             this.GetUnit(commandWords[2]).AddSupplement(healthCatalyst);
             break;
         case "Weapon":
             var weapon = new Weapon();
             this.GetUnit(commandWords[2]).AddSupplement(weapon);
             break;
         //case "InfestationSpores":
         //    var infSpores = new InfestationSpores();
         //    this.GetUnit(commandWords[2]).AddSupplement(infSpores);
         //    break;
         default:
             break;
     }
 }
Beispiel #11
0
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            var targetUnit = base.GetUnit(commandWords[2]);

            switch (commandWords[1])
            {
            case "PowerCatalyst":
            {
                var powerCatalyst = new PowerCatalyst();
                targetUnit.AddSupplement(powerCatalyst);
                break;
            }

            case "HealthCatalyst":
            {
                var healthCatalyst = new HealthCatalyst();
                targetUnit.AddSupplement(healthCatalyst);
                break;
            }

            case "AggressionCatalyst":
            {
                var aggressionCatalyst = new AggressionCatalyst();
                targetUnit.AddSupplement(aggressionCatalyst);
                break;
            }

            case "WeaponrySkill":
            {
                break;
            }

            case "Weapon":
            {
                if (targetUnit != null && targetUnit.GetType().Name == "Marine")
                {
                    var weapon = new Weapon();
                    targetUnit.AddSupplement(weapon);
                }

                break;
            }

            case "InfestationSpores":
            {
                break;
            }

            default:
                break;
            }
        }
Beispiel #12
0
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            switch (commandWords[1])
            {
            case "PowerCatalyst":
            {
                var inhibitor = new PowerCatalyst();
                var target    = this.GetUnit(commandWords[2]);
                target.AddSupplement(inhibitor);
            }
            break;

            case "HealthCatalyst":
            {
                var inhibitor = new HealthCatalyst();
                var target    = this.GetUnit(commandWords[2]);
                target.AddSupplement(inhibitor);
            }
            break;

            case "AggressionCatalyst":
            {
                var inhibitor = new AggressionCatalyst();
                var target    = this.GetUnit(commandWords[2]);
                target.AddSupplement(inhibitor);
            }
            break;

            case "Weapon":
            {
                var weapon = new Weapon();
                var target = this.GetUnit(commandWords[2]);
                target.AddSupplement(weapon);
            }
            break;

            default:
                base.ExecuteAddSupplementCommand(commandWords);
                break;
            }
        }
Beispiel #13
0
        protected override void ExecuteAddSupplementCommand(string[] commandWords)
        {
            switch (commandWords[1])
            {
            case "PowerCatalyst":
                var pCat = new PowerCatalyst();
                GetUnit(commandWords[2]).AddSupplement(pCat);
                break;

            case "HealthCatalyst":
                var hCat = new HealthCatalyst();
                GetUnit(commandWords[2]).AddSupplement(hCat);
                break;

            case "AggressionCatalyst":
                var aggCat = new AggressionCatalyst();
                GetUnit(commandWords[2]).AddSupplement(aggCat);
                break;

            case "Weapon": GetUnit(commandWords[2]).AddSupplement(new Weapon());
                break;
            }
        }
 protected override void ExecuteAddSupplementCommand(string[] commandWords)
 {
     switch (commandWords[1])
     {
         case "PowerCatalyst":
             {
                 var inhibitor = new PowerCatalyst();
                 var target = this.GetUnit(commandWords[2]);
                 target.AddSupplement(inhibitor);
             }
             break;
         case "HealthCatalyst":
             {
                 var inhibitor = new HealthCatalyst();
                 var target = this.GetUnit(commandWords[2]);
                 target.AddSupplement(inhibitor);
             }
             break;
         case "AggressionCatalyst":
             {
                 var inhibitor = new AggressionCatalyst();
                 var target = this.GetUnit(commandWords[2]);
                 target.AddSupplement(inhibitor);
             }
             break;
         case "Weapon":
             {
                 var weapon = new Weapon();
                 var target = this.GetUnit(commandWords[2]);
                 target.AddSupplement(weapon);
             }
             break;
         default:
             base.ExecuteAddSupplementCommand(commandWords);
             break;
     }
 }