mirror of
https://github.com/Lendaia/oe-alga-feladatok.git
synced 2026-04-23 12:26:07 +01:00
Add project files.
This commit is contained in:
16
ALGAme/ALGAme.csproj
Normal file
16
ALGAme/ALGAme.csproj
Normal file
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>OE.ALGA.ALGAme</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ALGA\ALGA.csproj" />
|
||||
<ProjectReference Include="..\Engine\Engine.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
42
ALGAme/Jatek.cs
Normal file
42
ALGAme/Jatek.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using OE.ALGA.Engine;
|
||||
|
||||
namespace OE.ALGA.ALGAme
|
||||
{
|
||||
public class Jatek
|
||||
{
|
||||
readonly Terkep terkep;
|
||||
public Terkep Terkep { get { return terkep; } }
|
||||
|
||||
readonly Backend backend;
|
||||
public Backend Backend { get { return backend; } }
|
||||
|
||||
public Jatek()
|
||||
{
|
||||
backend = new Backend();
|
||||
terkep = new Terkep(Param.TERKEP_SZELESSEG, Param.TERKEP_MAGASSAG);
|
||||
|
||||
PalyaGeneralas();
|
||||
NezopontokLetrehozasa();
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
backend.Start();
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
backend.Stop();
|
||||
}
|
||||
|
||||
private void PalyaGeneralas()
|
||||
{
|
||||
terkep.LabirintusGeneralas();
|
||||
}
|
||||
|
||||
private void NezopontokLetrehozasa()
|
||||
{
|
||||
backend.Megjelenites.NezopontFelvetele(terkep);
|
||||
}
|
||||
}
|
||||
}
|
||||
4
ALGAme/Program.cs
Normal file
4
ALGAme/Program.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
using OE.ALGA.ALGAme;
|
||||
|
||||
Jatek jatek = new Jatek();
|
||||
jatek.Start();
|
||||
Reference in New Issue
Block a user