PIbd-22_Fedorenko_G.Y._Hydr.../Hydroplane/EntityHydroplane.cs

27 lines
754 B
C#
Raw Permalink Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hydroplane.Entities
{
public class EntityHydroplane : EntityPlane
{
public Color AdditionalColor { get; set; }
2023-09-22 23:38:10 +04:00
public bool Boat { get; private set; }
public bool Bobber { get; private set; }
public EntityHydroplane(int speed, double weight, Color bodyColor, Color
additionalColor, bool boat, bool bobber) : base(speed, weight, bodyColor)
{
AdditionalColor = additionalColor;
2023-09-22 23:38:10 +04:00
Boat = boat;
Bobber = bobber;
}
public void setAdditionalColor(Color color)
{
AdditionalColor = color;
}
}
}