/// <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); }
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; }
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; }
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>(); }
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; }
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; }
/// <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]; }