Merge branch 'master' of manuel-voegele.de:inf3
This commit is contained in:
11
DummyBackend.cs
Normal file
11
DummyBackend.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace inf3
|
||||
{
|
||||
class DummyBackend
|
||||
{
|
||||
}
|
||||
}
|
||||
40
ParserTest.cs
Normal file
40
ParserTest.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Frontend;
|
||||
using WorldOfPeacecraft;
|
||||
using System.Threading;
|
||||
|
||||
namespace inf3
|
||||
{
|
||||
public class ParserTest
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Parser p = new Parser();
|
||||
|
||||
p.AddToBuffer("begin:5");
|
||||
//Console.WriteLine(p.getBuffer().Dequeue());
|
||||
p.AddToBuffer("begin:upd");
|
||||
p.AddToBuffer("begin:player");
|
||||
p.AddToBuffer("id:3");
|
||||
p.AddToBuffer("typ:Player");
|
||||
p.AddToBuffer("busy:false");
|
||||
p.AddToBuffer("desc:Player3");
|
||||
p.AddToBuffer("x:3");
|
||||
p.AddToBuffer("y:15");
|
||||
p.AddToBuffer("points:0");
|
||||
p.AddToBuffer("end:player");
|
||||
p.AddToBuffer("end:upd");
|
||||
p.AddToBuffer("end:5");
|
||||
|
||||
|
||||
Thread.Sleep(1000);
|
||||
|
||||
Console.WriteLine(p.getDummyPlayer());
|
||||
Console.ReadLine();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
12
inf3.csproj
12
inf3.csproj
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@@ -39,10 +39,14 @@
|
||||
<Reference Include="System.Core" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DummyBackend.cs" />
|
||||
<Compile Include="ParserTest.cs" />
|
||||
<Compile Include="src\Receiver.cs" />
|
||||
<Compile Include="src\Sender.cs" />
|
||||
<Compile Include="src\DefaultGui\DefaultGui.Designer.cs" />
|
||||
<Compile Include="src\DefaultGui\DefaultGui.cs" />
|
||||
<Compile Include="src\DefaultGui\DefaultGui.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="src\DefaultGui\IBackend.cs" />
|
||||
<Compile Include="src\DefaultGui\IPositionable.cs" />
|
||||
<Compile Include="src\DefaultGui\ITile.cs" />
|
||||
@@ -60,7 +64,5 @@
|
||||
<Compile Include="src\Opponent.cs" />
|
||||
<Compile Include="src\Result.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="src\DefaultGui\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
</Project>
|
||||
@@ -11,12 +11,12 @@ namespace Frontend
|
||||
/// <summary>
|
||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new DefaultGui(new Backend()));
|
||||
}
|
||||
//[STAThread]
|
||||
// static void Main()
|
||||
// {
|
||||
// Application.EnableVisualStyles();
|
||||
// Application.SetCompatibleTextRenderingDefault(false);
|
||||
// Application.Run(new DefaultGui(new Backend()));
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,10 @@ namespace WorldOfPeacecraft
|
||||
{
|
||||
return Score;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "Player: " + Id + " " + PosX + " " + PosY + " " + Desc + " " + Busy + " " + Score;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user