49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SzimulacioOOP
|
|
{
|
|
internal class Ceg
|
|
{
|
|
public List<Auto> Autok { get; set; }
|
|
public Fonok Igazgato { get; set; }
|
|
public List<Sofor> Vezetok { get; set; }
|
|
|
|
private int Autodb;
|
|
|
|
public Benzinkut Benzinkut { get; set; }
|
|
public Ceg() {
|
|
Igazgato = new Fonok("Nagy Főnök");
|
|
Benzinkut = new Benzinkut();
|
|
Autodb = 5;
|
|
GenSoforok();
|
|
GenAutok();
|
|
}
|
|
|
|
private void GenAutok()
|
|
{
|
|
Autok = new List<Auto>();
|
|
for (int i = 0; i < Autodb; i++)
|
|
{
|
|
Autok.Add(new Auto($"ceges{i}"));
|
|
}
|
|
}
|
|
private void GenSoforok()
|
|
{
|
|
Vezetok = new List<Sofor>();
|
|
for (int i = 0; i < Autodb; i++)
|
|
{
|
|
Vezetok.Add(new Sofor($"sofor-{i}"));
|
|
}
|
|
}
|
|
|
|
internal void SzimulacioIndul()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|