Пример #1
0
        private List <Soldier> StartingSoldiers()
        {
            var result = new List <Soldier>();

            var soldiers = new Dictionary <string, int>();

            soldiers.Add("Owen Doherty", 0);
            soldiers.Add("Martina Becker", 1);
            soldiers.Add("Willie de Haan", 0);
            soldiers.Add("Ushma Ganguly", 1);
            soldiers.Add("Okan Karaduman", 0);
            soldiers.Add("Sindre Folkow", 1);
            soldiers.Add("Nasir Asaf", 0);
            soldiers.Add("Lucian Marinescu", 0);

            var craft = new SoldierCraft(Lat, Lon, "STR_SKYRANGER", 1);

            int id = 1;

            foreach (var soldier in soldiers)
            {
                var xcSoldier = new Soldier(id++, soldier.Key, soldier.Value, craft);
                result.Add(xcSoldier);
            }

            return(result);
        }
Пример #2
0
 public Soldier(string type, int id, string name, Stats initialStats, Stats currentStats, int rank, SoldierCraft craft, int gender, int look, int missions, int kills, int?recovery, Diary?diary, string armor, int improvement, int psiStrImprovement, List <Equipment> equipmentLayout, List <ItemType>?equipmentSlot, Death?death)
 {
     Type              = type;
     Id                = id;
     Name              = name;
     InitialStats      = initialStats;
     CurrentStats      = currentStats;
     Rank              = rank;
     Craft             = craft;
     Gender            = gender;
     Look              = look;
     Missions          = missions;
     Kills             = kills;
     Recovery          = recovery;
     Diary             = diary;
     Armor             = armor;
     Improvement       = improvement;
     PsiStrImprovement = psiStrImprovement;
     EquipmentLayout   = equipmentLayout;
     EquipmentSlot     = equipmentSlot;
     Death             = death;
 }
Пример #3
0
 public void SetCraft(double lat, double lon, string type, int id)
 {
     Craft = new SoldierCraft(lat, lon, type, id);
 }