예제 #1
0
        public IMonstre Creer()
        {
            var r    = RandomUnit.Next(Types.Length);
            var type = Types[r];

            return(Activator.CreateInstance(type) as IMonstre);
        }
예제 #2
0
 public virtual string Parle(string texteAdditionnel = null)
 {
     if (!EstVivant)
     {
         throw new Exception("Le monstre ne peut pas parler s'il est mort...");
     }
     return(_dialogues[RandomUnit.Next(_dialogues.Count)] + texteAdditionnel);
 }
예제 #3
0
파일: De.cs 프로젝트: ivanmorlot/Loho
 public int LancerLeDe()
 {
     return(RandomUnit.Next(Min, Max + 1));
 }