creation des classes pour : personnage, bateau, ile, fruitDuDemon, equipage et bestiaire -> certains attributs doivent être changés en tableau

devGuillaume
Guillaume REY 2 years ago
parent 4879c96200
commit 537a612d01

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Bateau
{
public string Nom { get; set; }
public string NomRomanise { get; set; }
public string Affiliation { get; set; }
public int PremierChap { get; set; }
public int PremierEp { get; set; }
public string Description { get; set; }
public string Caracteristique { get; set; }
public Bateau(string nom, string nomRomanise, string affiliation, int premierChap, int premierEp, string description, string caracteristique)
{
Nom = nom;
NomRomanise = nomRomanise;
Affiliation = affiliation;
PremierChap = premierChap;
PremierEp = premierEp;
Description = description;
Caracteristique = caracteristique;
}
}
}

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Bestiaire
{
public string Nom { get; set; }
public string Origine { get; set; }
public string Description { get; set; }
public string Caracteristique { get; set; }
public Bestiaire(string nom, string origine, string description, string caracteristique)
{
Nom = nom;
Origine = origine;
Description = description;
Caracteristique = caracteristique;
}
}
}

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Equipage
{
public string Nom { get; set; }
public string NomRomanise { get; set; }
public Personnage Capitaine { get; set; }
public string Region { get; set; }
public int PremierChap { get; set; }
public int PremierEp { get; set; }
public bool Statut { get; set; }
public string Description { get; set; }
public Personnage Membre { get; set; }
public Personnage Allie { get; set; }
public Equipage(string nom, string nomRomanise, Personnage capitaine, string region, int premierChap, int premierEp, bool statut, string description, Personnage membre, Personnage allie)
{
Nom = nom;
NomRomanise = nomRomanise;
Capitaine = capitaine;
Region = region;
PremierChap = premierChap;
PremierEp = premierEp;
Statut = statut;
Description = description;
Membre = membre;
Allie = allie;
}
}
}

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class FruitDuDemon
{
public string Nom { get; set; }
public string NomRomanise { get; set; }
public string Type { get; set; }
public int PremierChap { get; set; }
public int PremierEp { get; set; }
public string Description { get; set; }
public string Forces { get; set; }
public string Faiblesses { get; set; }
public Personnage Utilisateur { get; set; }
public FruitDuDemon(string nom, string nomRomanise, string type, int premierChap, int premierEp, string description, string forces, string faiblesses, Personnage utilisateur)
{
Nom = nom;
NomRomanise = nomRomanise;
Type = type;
PremierChap = premierChap;
PremierEp = premierEp;
Description = description;
Forces = forces;
Faiblesses = faiblesses;
Utilisateur = utilisateur;
}
}
}

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Ile
{
public string Nom { get; set; }
public string NomRomanise { get; set; }
public string Region { get; set; }
public int PremierChap { get; set; }
public int PremierEp { get; set; }
public string Description { get; set; }
public string Geographie { get; set; }
public Ile(string nom, string nomRomanise, string region, int premierChap, int premierEp, string description, string geographie)
{
Nom = nom;
NomRomanise = nomRomanise;
Region = region;
PremierChap = premierChap;
PremierEp = premierEp;
Description = description;
Geographie = geographie;
}
}
}

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -0,0 +1,31 @@
namespace Model
{
public class Personnage
{
public string Nom { get; set; }
public string Epithete { get; set; }
public int Age { get; set; }
public float Taille { get; set; }
public FruitDuDemon Fruit { get; set; }
public string Origine { get; set; }
public string Equipage { get; set; }
public string Biographie { get; set; }
public string Citation { get; set; }
public Personnage(string nom, string epithete, int age, float taille, FruitDuDemon fruit, string origine, string equipage, string biographie, string citation)
{
Nom = nom;
Epithete = epithete;
Age = age;
Taille = taille;
Fruit = fruit;
Origine = origine;
Equipage = equipage;
Biographie = biographie;
Citation = citation;
}
}
}

@ -5,6 +5,10 @@ VisualStudioVersion = 17.0.31611.283
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ohara", "Ohara\Ohara.csproj", "{EEC24A76-0EB3-4C67-A71B-7FF823713645}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{A0307D66-E621-4BC1-A239-87C9021E7CFD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestConsole", "TestConsole\TestConsole.csproj", "{82A1ED67-9A29-4F12-94CD-2DC8221DE374}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -17,6 +21,14 @@ Global
{EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.Build.0 = Release|Any CPU
{EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.Deploy.0 = Release|Any CPU
{A0307D66-E621-4BC1-A239-87C9021E7CFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0307D66-E621-4BC1-A239-87C9021E7CFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0307D66-E621-4BC1-A239-87C9021E7CFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0307D66-E621-4BC1-A239-87C9021E7CFD}.Release|Any CPU.Build.0 = Release|Any CPU
{82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Model\Model.csproj" />
</ItemGroup>
</Project>
Loading…
Cancel
Save