mirror of
https://github.com/Lendaia/oe-alga-feladatok.git
synced 2026-04-23 04:16:32 +01:00
43 lines
879 B
C#
43 lines
879 B
C#
|
|
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|