|
|
@ -12,46 +12,35 @@ namespace Model
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public IDataManager DataManager { get; set; }
|
|
|
|
public IDataManager DataManager { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<Personnage> Personnages { get; set; }
|
|
|
|
|
|
|
|
public List<FruitDuDemon> Fruits { get; set; }
|
|
|
|
|
|
|
|
public List<Equipage> Equipages { get; set; }
|
|
|
|
|
|
|
|
public List<Bateau> Bateaux { get; set; }
|
|
|
|
|
|
|
|
public List<Bestiaire> Bestiaires { get; set; }
|
|
|
|
|
|
|
|
public List<Ile> Iles { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Manager() {
|
|
|
|
public Manager() {
|
|
|
|
DataManager = new StubManager();
|
|
|
|
DataManager = new StubManager();
|
|
|
|
//Personnages = DataManager.GetPersonnages();
|
|
|
|
|
|
|
|
//Fruits = DataManager.GetFruits();
|
|
|
|
|
|
|
|
//Equipages = Stub.GetEquipages();
|
|
|
|
|
|
|
|
//Bateaux = Stub.GetBateaux();
|
|
|
|
|
|
|
|
//Bestiaires = Stub.GetBestiaires();
|
|
|
|
|
|
|
|
//Iles = Stub.GetIles();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Personnage> GetPersonnages()
|
|
|
|
public List<Personnage> GetPersonnages()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Personnages;
|
|
|
|
return DataManager.GetPersonnages().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public List<FruitDuDemon> GetFruits()
|
|
|
|
public List<FruitDuDemon> GetFruits()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Fruits;
|
|
|
|
return DataManager.GetFruits().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public List<Equipage> GetEquipages()
|
|
|
|
public List<Equipage> GetEquipages()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Equipages;
|
|
|
|
return DataManager.GetEquipages().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public List<Bateau> GetBateaux()
|
|
|
|
public List<Bateau> GetBateaux()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Bateaux;
|
|
|
|
return DataManager.GetBateaux().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public List<Bestiaire> GetBestiaires()
|
|
|
|
public List<Bestiaire> GetBestiaires()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Bestiaires;
|
|
|
|
return DataManager.GetBestiaires().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public List<Ile> GetIles()
|
|
|
|
public List<Ile> GetIles()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Iles;
|
|
|
|
return DataManager.GetIles().ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|