コード例 #1
0
 public RabbitClass(EyesType eyesRabbit, FurType furOfRabbit, GenderType gender, DateTime birthdayRabbit)
 {
     EyesRabbit     = eyesRabbit;
     FurOfRabbit    = furOfRabbit;
     Gender         = gender;
     BirthdayRabbit = birthdayRabbit;
 }
コード例 #2
0
ファイル: Rabbit.cs プロジェクト: net-5/rabbit-OnescuO
 public Rabbit(EyesType eyes, FurType fur, GenderType gender, int birthDate, string type, string behavior)
 {
     eyes      = eyes;
     fur       = fur;
     gender    = gender;
     BirthDate = birthDate;
     Type      = type;
     Behavior  = behavior;
 }
コード例 #3
0
        public Fur(FurType type, int amount)
            : base(0x1875)
        {
            Stackable = true;
            Amount    = amount;

            switch (type)
            {
            default:
            case FurType.None: Hue = 0; break;

            case FurType.Green: Hue = 58; break;

            case FurType.LightBrown: Hue = 1541; break;

            case FurType.Yellow: Hue = 153; break;

            case FurType.Brown: Hue = 343; break;
            }
        }
コード例 #4
0
ファイル: Bunny.cs プロジェクト: theshaftman/Telerik-Academy
 public Bunny(string name, int age, FurType furType)
 {
     this.Name = name;
     this.Age = age;
     this.FurType = furType;
 }
コード例 #5
0
ファイル: Bunny.cs プロジェクト: prot3ct/TelerikSeson2016
 public Bunny(string name, int age, FurType furType)
 {
     this.Name    = name;
     this.Age     = age;
     this.FurType = furType;
 }
コード例 #6
0
 public Bunny(string name, int age, FurType furType)
 {
     this.Name    = string.Empty;
     this.Age     = 0;
     this.FurType = FurType.NotFluffy;
 }