Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Showing
with 230 additions and 5 deletions
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7C02E7F4-F021-4B44-B526-4CD2DB663598}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Wanderer</RootNamespace>
<AssemblyName>Wanderer</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="controller\Game.cs" />
<Compile Include="model\Improvement.cs" />
<Compile Include="model\Player.cs" />
<Compile Include="view\FormFin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="view\FormFin.Designer.cs">
<DependentUpon>FormFin.cs</DependentUpon>
</Compile>
<Compile Include="model\Map.cs" />
<Compile Include="model\Terrain.cs" />
<Compile Include="model\Tile.cs" />
<Compile Include="view\Controls\MapView.cs" />
<Compile Include="view\Controls\TileView.cs" />
<Compile Include="view\FormAide.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="view\FormAide.Designer.cs">
<DependentUpon>FormAide.cs</DependentUpon>
</Compile>
<Compile Include="view\FormJeu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="view\FormJeu.Designer.cs">
<DependentUpon>FormJeu.cs</DependentUpon>
</Compile>
<Compile Include="view\FormMainMenu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="view\FormMainMenu.Designer.cs">
<DependentUpon>FormMainMenu.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="view\FormAide.resx">
<DependentUpon>FormAide.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="view\FormFin.resx">
<DependentUpon>FormFin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="view\FormJeu.resx">
<DependentUpon>FormJeu.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="view\FormMainMenu.resx">
<DependentUpon>FormMainMenu.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wanderer", "Wanderer.csproj", "{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wanderer", "Wanderer.csproj", "{7C02E7F4-F021-4B44-B526-4CD2DB663598}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -8,9 +8,9 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Release|Any CPU.Build.0 = Release|Any CPU
{7C02E7F4-F021-4B44-B526-4CD2DB663598}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7C02E7F4-F021-4B44-B526-4CD2DB663598}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7C02E7F4-F021-4B44-B526-4CD2DB663598}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7C02E7F4-F021-4B44-B526-4CD2DB663598}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
using System.Collections.Generic;
using System.Drawing;
using Wanderer.model;
namespace Wanderer.controller
{
public class Game
{
public List<Player> Players { get; set; }
public int currentPlayerIndex { get; set; }
public static Game Instance { get; set; }
public Game()
{
Players = new List<Player>(2);
Players.Add(new Player(Color.Brown));
Players.Add(new Player(Color.RoyalBlue));
}
}
}
\ No newline at end of file
namespace Wanderer.model
{
public enum Improvement
{
Refuge,
Path,
Club,
TrainStation,
Factory
}
}
\ No newline at end of file
namespace Wanderer.model
{
public class Map
{
private Tile[,] _tiles;
public Map(int x, int y)
{
_tiles = new Tile[x, y];
for (int i = 0; i < x; ++i)
for (int j = 0; j < y; ++j)
_tiles[i, j] = new Tile();
}
public Tile[,] Tiles
{
get => _tiles;
set => _tiles = value;
}
}
}
\ No newline at end of file
using System.Drawing;
namespace Wanderer.model
{
public class Player
{
public Color Color { get; set; }
public int bonusCh = 0;//bonus Chemin
public int bonusCl = 0; //bonus Club
public int marks = 50;
public int randonneurs = 0;
public int tailleTerritoire;
public int gain = 0;
public Player(Color color)
{
Color = color;
}
}
}
\ No newline at end of file
namespace Wanderer.model
{
public enum Terrain
{
Plains,
Hills,
Mountains,
Forest,
Lake,
River,
Urban
}
}
\ No newline at end of file
namespace Wanderer.model
{
public class Tile
{
private Improvement _improvement;
public Terrain Terrain { get; set; }
public Player Owner { get; set; }
public bool HasChanged { get; set; }
public Improvement Improvement
{
get => _improvement;
set
{
_improvement = _improvement == 0 ? value : _improvement;
HasChanged = true;
}
}
}
}
\ No newline at end of file
src/ressources/34258_large.jpg

1.01 MiB

src/ressources/Reliefkarte_Massif_des_Vosges.JPG

3.81 MiB

src/ressources/Reliefkarte_Massif_des_Vosgess.JPG

2.79 MiB

src/ressources/cabin.png

2.75 KiB

src/ressources/coins.png

1.12 KiB

src/ressources/factory-4.png

2.82 KiB

src/ressources/group.png

1.64 KiB

src/ressources/mountaineer.png

1.82 KiB

src/ressources/mountains.ico

66.1 KiB

src/ressources/path-forest-trees-bushes-grass-cc.jpg

7.94 MiB

src/ressources/path-forest-trees-bushes-grass-min.jpg

839 KiB

src/ressources/path.png

3.63 KiB