зафиксировать
This commit is contained in:
parent
126cd2332b
commit
6295e00999
@ -17,9 +17,7 @@ namespace Boat_Hard
|
||||
private readonly int _boatHeight = 118;
|
||||
private DrawningOars drawningOars;
|
||||
|
||||
public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool motor
|
||||
//, bool bombs, bool fuelTanks
|
||||
, int oars, int width, int height)
|
||||
public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool motor, int oars, int width, int height)
|
||||
{
|
||||
if (width < _boatWidth || height < _boatHeight)
|
||||
{
|
||||
@ -28,9 +26,7 @@ namespace Boat_Hard
|
||||
_pictureWidth = width;
|
||||
_pictureHeight = height;
|
||||
EntityBoat = new EntityBoat();
|
||||
EntityBoat.Init(speed, weight, bodyColor, additionalColor, motor
|
||||
//, bombs, fuelTanks
|
||||
, oars);
|
||||
EntityBoat.Init(speed, weight, bodyColor, additionalColor, motor, oars);
|
||||
|
||||
drawningOars = new DrawningOars();
|
||||
drawningOars.SetAmount(oars);
|
||||
|
@ -14,21 +14,15 @@ namespace Boat_Hard
|
||||
public Color AdditionalColor { get; private set; }
|
||||
public bool isMotor { get; private set; }
|
||||
|
||||
//public bool Bombs { get; private set; }
|
||||
//public bool FuelTanks { get; private set; }
|
||||
public int Oars { get; private set; }
|
||||
public double Step => (double)Speed * 100 / Weight;
|
||||
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool motor
|
||||
//, bool fuelTanks
|
||||
, int oars)
|
||||
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool motor, int oars)
|
||||
{
|
||||
Speed = speed;
|
||||
Weight = weight;
|
||||
BodyColor = bodyColor;
|
||||
AdditionalColor = additionalColor;
|
||||
isMotor = motor;
|
||||
//Bombs = bombs;
|
||||
//FuelTanks = fuelTanks;
|
||||
Oars = oars;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user