public Monstre(int ID, CarteType Type, string Nom, int Dommage, int NombreDeNiveaux, int NombreDeTresors, List <Effet> Effets, List <IncidentFacheux> IncidentsFacheux) : base(ID, Nom) { this.Type = Type; this.Dommage = Dommage; this.NombreDeNiveaux = NombreDeNiveaux; this.NombreDeTresors = NombreDeTresors; this.Effets = Effets; this.IncidentsFacheux = IncidentsFacheux; }
public EffetCarte(CarteType ct) { Type = ct; if (Type == CarteType.Communauté) { Title = "Vous recevez de l'argent"; amount = Random.Range(10, 51); amount = amount * 1000; Text = "Recevez " + amount; } else { int rand = Random.Range(0, 4); switch (rand) { case 0: effet = Effet.Bouger; Title = "Deplacement forcer"; int id = Random.Range(0, 40); Text = "Vous partez pour " + GameManager.instance.gs.Case[id].Nom; amount = id; break; case 1: effet = Effet.Payer; Title = " Visite de l'inspecteur des impots"; amount = Random.Range(10, 31); amount = amount * 1000; Text = " Vous n'avez pas déclarer quelque chose, payez " + amount; break; case 2: effet = Effet.Recevoir; Title = " Lotterie "; amount = Random.Range(10, 31); amount = amount * 1000; Text = " Vous gagnez " + amount + " à la lotterie"; break; case 3: Title = "Detournement de fond"; Text = "Vous vous faite attrapé pour detournement de fond, allé en prison 3 tour"; break; } } }
public Action(int ID, string Nom, CarteType Type, string Texte) : base(ID, Nom) { this.Type = Type; this.Texte = Texte; }