Пример #1
0
 /// <summary>
 /// Metodo che restituisce il moltiplicatore per la religione con l'impero del giocatore.
 /// Se empireToPlayer è true o non indicato, ritorna il moltiplicatore di come viene visto il giocatore dall'impero indicato,
 /// altrimenti ritorna come il giocatore vede l'impero.
 /// </summary>
 /// <param name="religion">Religione dell'impero indicato</param>
 /// <param name="empireToPlayer">Indica se si restituisce il valore della relazione da Impero a Giocatore (true) o viceversa (false)</param>
 /// <returns>Moltiplicatore dovuto alla religione</returns>
 public static int ReligionIndex(ReligionType religion, bool empireToPlayer = true)
 {
     if(empireToPlayer)
         return ReligionIndex(religion, GameManager.PlayerEmpire.EmpireReligion);
     else
         return ReligionIndex(GameManager.PlayerEmpire.EmpireReligion, religion);
 }
Пример #2
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;
 }
Пример #3
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;
 }
Пример #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)
 {
 }
Пример #5
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)
 {
 }
Пример #6
0
 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>();
 }
Пример #8
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;
 }
Пример #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;
 }
Пример #10
0
        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;
        }
Пример #11
0
 /// <summary>
 ///  Metodo che restituisce il moltiplicatore per la religione nella relazione IMPERO 1 -> IMPERO 2
 /// </summary>
 /// <param name="religion1">Religione dell'impero 1</param>
 /// <param name="religion2">Religione dell'impero 2</param>
 /// <returns>Moltiplicatore dovuto alla religione</returns>
 public static int ReligionIndex(ReligionType religion1, ReligionType religion2)
 {
     int x = (int)religion1;
     int y = (int)religion2;
     return ReligionArray[x,y];
 }