示例#1
0
 public Coach(string firstName, string lastName, int id, int age, int heigth, int weigth,
              RaceType raceType, ReligionType religionType, EyeColorType eyeColorType,
              FaceShapeType faceShape, HairColorType hairColor, BodyShapeType bodyShape, int coachCapability)
     : base(firstName, lastName, id, age, heigth, weigth, raceType, religionType, eyeColorType, faceShape, hairColor, bodyShape)
 {
     this.CoachCapability = coachCapability;
 }
示例#2
0
 public Player(string firstName, string lastName, int id, int age, int heigth, int weigth, RaceType raceType,
               ReligionType religionType, EyeColorType eyeColorType, FaceShapeType faceShape, HairColorType hairColor, BodyShapeType bodyShape,
               int playerNumber, PlayerPositionType playerPosition, PlayerType playerType, int capability)
     : base(firstName, lastName, id, age, heigth, weigth, raceType, religionType, eyeColorType, faceShape, hairColor, bodyShape)
 {
     this.PlayerNumber   = playerNumber;
     this.PlayerType     = playerType;
     this.PlayerPosition = playerPosition;
     this.Capability     = capability;
 }
示例#3
0
 public SoftwareEngineer(
     string name,
     int age,
     HairColorType hairColor,
     EyesColorType eyesColor,
     FaceShapeType faceShape,
     RaceType race,
     GenderType gender,
     ReligionType religion)
     : base(name, age, hairColor, eyesColor, faceShape, race, gender, religion)
 {
 }
示例#4
0
 public SoftwareEngineer(
     string name,
     int age,
     HairColorType hairColor,
     EyesColorType eyesColor,
     FaceShapeType faceShape,
     RaceType race,
     GenderType gender,
     ReligionType religion)
     : base(name, age, hairColor, eyesColor, faceShape, race, gender, religion)
 {
 }
 public Waiter(
     string name, 
     int age, 
     HairColorType hairColor, 
     EyesColorType eyesColor, 
     FaceShapeType faceShape, 
     RaceType race, 
     GenderType gender, 
     ReligionType religion)
     : base(name, age, hairColor, eyesColor, faceShape, race, gender, religion)
 {
     this.isAvailable = true;
     this.orders = new Dictionary<IHuman, IRestaurantOrder>();
 }
 public Waiter(
     string name,
     int age,
     HairColorType hairColor,
     EyesColorType eyesColor,
     FaceShapeType faceShape,
     RaceType race,
     GenderType gender,
     ReligionType religion)
     : base(name, age, hairColor, eyesColor, faceShape, race, gender, religion)
 {
     this.isAvailable = true;
     this.orders      = new Dictionary <IHuman, IRestaurantOrder>();
 }
示例#7
0
 public Participant(string firstName, string lastName, int id, int age, int heigth, int weigth,
                    RaceType raceType, ReligionType religionType, EyeColorType eyeColorType,
                    FaceShapeType faceShape, HairColorType hairColor, BodyShapeType bodyShape)
 {
     this.Age       = age;
     this.FirstName = firstName;
     this.LastName  = lastName;
     this.ID        = id;
     this.Weight    = weigth;
     this.Heigth    = heigth;
     this.RaceType  = raceType;
     this.Religion  = religionType;
     this.EyeType   = eyeColorType;
     this.FaceShape = faceShape;
     this.HairColor = hairColor;
     this.BodyShape = bodyShape;
 }
示例#8
0
        public async Task <int> SaveFaceShapeType(FaceShapeType faceShapeType)
        {
            if (faceShapeType.Id != 0)
            {
                _context.FaceShapeTypes.Update(faceShapeType);

                await _context.SaveChangesAsync();

                return(1);
            }
            else
            {
                await _context.FaceShapeTypes.AddAsync(faceShapeType);

                await _context.SaveChangesAsync();

                return(1);
            }
        }
示例#9
0
 public Human(
     string name,
     int age,
     HairColorType hairColor,
     EyesColorType eyesColor,
     FaceShapeType faceShape,
     RaceType race,
     GenderType gender,
     ReligionType religion,
     decimal moneyInEuro) : this()
 {
     this.Id        = DataGenerator.GenerateUniqueId();
     this.name      = name;
     this.age       = age;
     this.hairColor = hairColor;
     this.eyesColor = eyesColor;
     this.faceShape = faceShape;
     this.gender    = gender;
     this.race      = race;
     this.religion  = religion;
 }
        public Human(
            string name,
            int age,
            HairColorType hairColor,
            EyesColorType eyesColor,
            FaceShapeType faceShape,
            RaceType race,
            GenderType gender,
            ReligionType religion)
            : this()
        {
            this.id = DataGenerator.GenerateUniqueId();

            this.name = name;
            this.age = age;
            this.hairColor = hairColor;
            this.faceShape = faceShape;
            this.eyesColor = eyesColor;
            this.religion = religion;
            this.gender = gender;
            this.race = race;
        }