示例#1
0
        public Cote(Cotes cotes, GenericReader reader)
        {
            this.cotes = cotes;

            int version = reader.ReadInt();

            xp   = reader.ReadInt();
            cote = (ValeurCote)reader.ReadInt();
        }
示例#2
0
        public static int LimiteMaximale(ValeurCote cote)
        {
            switch (cote)
            {
            default:
            case ValeurCote.Normal: return(0);

            case ValeurCote.Passable: return(100);

            case ValeurCote.Questionnable: return(202);

            case ValeurCote.Interdit: return(302);
            }
        }
示例#3
0
 public Cote(Cotes cotes, ValeurCote cote)
 {
     this.cotes = cotes;
     this.cote  = cote;
     xp         = ReductionExperience();
 }
示例#4
0
 public void OctroyerCote(ValeurCote cote, Mobile from, int message)
 {
     cotes.Add(new Cote(this, cote));
     raisons.Add(new RaisonCote(from, message));
     LastCotation = DateTime.Now;
 }