Пример #1
0
        static private String ChooseHeadName(PartClass partClass,
                                             EnemyScanAbility enemyScanAbility,
                                             float missileInterceptionRate)
        {
            const String HEAD_NAME_LETTERS = "zbpquxd";

            String name;

            name = ChooseFromLetters(HEAD_NAME_LETTERS, 8);

            name += "-" + (int)partClass;

            if (enemyScanAbility != EnemyScanAbility.None)
            {
                name += "XXSMT";
            }
            else
            {
                name += "XXDMB";
            }

            if (missileInterceptionRate > 0.5f)
            {
                name += "+FST";
            }
            else
            {
                name += "+SLO";
            }

            return(name);
        }
Пример #2
0
 public Head(String partName, PartClass partRank, EnemyScanAbility enemyScanAbility, float missileInterceptionRate)
     : base(partName, partRank)
 {
     this.missileInterceptionRate = missileInterceptionRate;
     this.enemyScanAbility        = enemyScanAbility;
 }