|
|
@ -1,6 +1,6 @@
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Model
|
|
|
|
namespace Model.Classes
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[DataContract(Name = "personnage")]
|
|
|
|
[DataContract(Name = "personnage")]
|
|
|
|
public class Personnage : ObjetOhara
|
|
|
|
public class Personnage : ObjetOhara
|
|
|
@ -19,9 +19,9 @@ namespace Model
|
|
|
|
public string Biographie { get; set; }
|
|
|
|
public string Biographie { get; set; }
|
|
|
|
[DataMember(Name = "citation")]
|
|
|
|
[DataMember(Name = "citation")]
|
|
|
|
public string Citation { get; set; }
|
|
|
|
public string Citation { get; set; }
|
|
|
|
[DataMember(Name="equipage",EmitDefaultValue = false)]
|
|
|
|
[DataMember(Name = "equipage", EmitDefaultValue = false)]
|
|
|
|
public Equipage? Equipage { get; set; }
|
|
|
|
public Equipage? Equipage { get; set; }
|
|
|
|
[DataMember(Name="fruit",EmitDefaultValue = false)]
|
|
|
|
[DataMember(Name = "fruit", EmitDefaultValue = false)]
|
|
|
|
public List<FruitDuDemon> Fruit { get; set; } = new List<FruitDuDemon>();
|
|
|
|
public List<FruitDuDemon> Fruit { get; set; } = new List<FruitDuDemon>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ namespace Model
|
|
|
|
|
|
|
|
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation) : base(nom)
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation) : base(nom)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(prime < 0)
|
|
|
|
if (prime < 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Prime = 0;
|
|
|
|
Prime = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -39,13 +39,13 @@ namespace Model
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Epithete = epithete;
|
|
|
|
Epithete = epithete;
|
|
|
|
Age = age;
|
|
|
|
Age = age;
|
|
|
|
if(taille < 0)
|
|
|
|
if (taille < 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Taille = 0;
|
|
|
|
Taille = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Taille= taille;
|
|
|
|
Taille = taille;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Origine = origine;
|
|
|
|
Origine = origine;
|
|
|
@ -55,11 +55,11 @@ namespace Model
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation, string image) : this(nom, prime,epithete,age,taille,origine,biographie,citation)
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation, string image) : this(nom, prime, epithete, age, taille, origine, biographie, citation)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Image = image;
|
|
|
|
Image = image;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation,string image ,Equipage equipage,List<FruitDuDemon> fruit) : this(nom,prime,epithete,age,taille,origine,biographie,citation,image)
|
|
|
|
public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation, string image, Equipage equipage, List<FruitDuDemon> fruit) : this(nom, prime, epithete, age, taille, origine, biographie, citation, image)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Equipage = equipage;
|
|
|
|
Equipage = equipage;
|
|
|
|
Fruit = fruit;
|
|
|
|
Fruit = fruit;
|