31 lines
668 B
C#
31 lines
668 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace KartyaOszto
|
|
{
|
|
class Jatekos
|
|
{
|
|
public string nev;
|
|
public Kartyalap[] lapok;
|
|
private int felvett;
|
|
|
|
public Jatekos(string nev, int lapszam)
|
|
{
|
|
lapok = new Kartyalap[lapszam];
|
|
this.nev = nev;
|
|
felvett = 0;
|
|
}
|
|
|
|
public void Felvesz(List<Kartyalap> laplista)
|
|
{
|
|
foreach (Kartyalap kl in laplista)
|
|
{
|
|
lapok[felvett] = kl;
|
|
felvett++;
|
|
Console.WriteLine($"{nev} felvette: "+ kl.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|