Готовая лабораторная работа 5
This commit is contained in:
parent
525a6a7d7c
commit
7668db2e11
@ -56,7 +56,6 @@ namespace Tank
|
|||||||
Direction.Right => _startPosX + _Width + Tank.Step < _pictureWidth,
|
Direction.Right => _startPosX + _Width + Tank.Step < _pictureWidth,
|
||||||
Direction.Down => _startPosY + _Height + Tank.Step < _pictureHeight,
|
Direction.Down => _startPosY + _Height + Tank.Step < _pictureHeight,
|
||||||
_ => false
|
_ => false
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace Tank
|
|||||||
{
|
{
|
||||||
public int Speed { get; private set; }
|
public int Speed { get; private set; }
|
||||||
public double Weight { get; private set; }
|
public double Weight { get; private set; }
|
||||||
public Color BodyColor { get; set; }
|
public Color BodyColor { get; private set; }
|
||||||
public void setBodyColor(Color color) { BodyColor = color; }
|
public void setBodyColor(Color color) { BodyColor = color; }
|
||||||
public double Step => (double)Speed * 100 / Weight;
|
public double Step => (double)Speed * 100 / Weight;
|
||||||
public EntityArmoVehicle(int speed, double weight, Color bodyColor)
|
public EntityArmoVehicle(int speed, double weight, Color bodyColor)
|
||||||
|
Loading…
Reference in New Issue
Block a user