22 lines
775 B
C#
22 lines
775 B
C#
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces.Garbage;
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces.TrashCans;
|
|
|
|
namespace CzokoŚmieciarka.MonoGameView.DataModels.GeneralModels.Models
|
|
{
|
|
public class TrashCan : ATrashCan
|
|
{
|
|
public TrashCan(ITypeOfGarbage typeOfGarbage, int maxVolume) : base(typeOfGarbage, maxVolume)
|
|
{
|
|
}
|
|
public TrashCan(ITypeOfGarbage typeOfGarbage, int maxVolume, BasicGarbage garbage) : base(typeOfGarbage, maxVolume, garbage)
|
|
{
|
|
}
|
|
|
|
public override object Clone()
|
|
{
|
|
return new TrashCan((TypeOfGarbage) TypeOfGarbage.Clone(), MaxVolume, (BasicGarbage) Garbage.Clone());
|
|
}
|
|
}
|
|
}
|