Exemplo n.º 1
0
 public MFRabbits(String name, int li, MFRabNames males, MFRabNames females, MiaFile mf)
     : base(name, li)
 {
     nmales   = males;
     nfemales = females;
     this.mf  = mf;
 }
Exemplo n.º 2
0
 public RabFemale(BinaryReader br, float ver, MFRabNames males, MFRabNames females)
 {
     nmales   = males;
     nfemales = females;
     suckers  = new MFRabbits("suckers", nmales, nfemales, null);
     read(br, ver);
 }
Exemplo n.º 3
0
 public Rabbit(BinaryReader br, float ver, MFRabNames nmales, MFRabNames nfemales)
 {
     males   = nmales;
     females = nfemales;
     if (ver > 3)
     {
         proplist.Add(number);
     }
     proplist.Add(unique);
     proplist.Add(namekey);
     proplist.Add(surkey);
     proplist.Add(pathkey);
     proplist.Add(notes);
     proplist.Add(butcher);
     if (ver > 3)
     {
         proplist.Add(risk);
     }
     proplist.Add(okrol_num);
     proplist.Add(where);
     proplist.Add(tier);
     proplist.Add(tier_id);
     proplist.Add(area);
     proplist.Add(rate);
     proplist.Add(group);
     proplist.Add(breed);
     proplist.Add(multi);
     proplist.Add(zone);
     Read(br, ver);
 }
Exemplo n.º 4
0
        //private int _curRabbit=1;

        public int GetNameId(ushort key, ushort sex, bool name)
        {
            if (sex == 0)
            {
                return(0);
            }
            if (key == 0)
            {
                return(0);
            }

            int        res = 0;
            MFRabNames rn  = (sex == 1 ? Mia.MaleNames : Mia.FemaleNames);

            for (int i = 0; (i < rn.Rabnames.Count) && (res == 0); i++)
            {
                if (name)
                {
                    if (rn.Rabnames[i].Key.value() == key)
                    {
                        res = rn.Rabnames[i].Key.tag;
                    }
                }
                else
                {
                    if (rn.Rabnames[i].Surkey.value() == key)
                    {
                        res = rn.Rabnames[i].Key.tag;
                    }
                }
            }
            return(res);
        }
Exemplo n.º 5
0
 public MFArchiveForm(String name, int li, MFRabNames males, MFRabNames females)
     : base(name, li)
 {
     dead = new MFRabbits("dead", males, females, null);
 }