PIbd-21. Teryokhin A.S. Lab work 01 #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "Lab1Base"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Зачтено с понижением балла(ов)
@ -0,0 +55,4 @@
public bool Init(int speed, double weight, Color bodyColor, Color
additionalColor, bool boat, bool floater, int width, int height)
{
if (width < _pictureWidth || height < _pictureHeight)
Что тут проверяется????
@ -0,0 +80,4 @@
/// <param name="y">Координата Y</param>
public void SetPosition(int x, int y)
{
if (x <= _pictureWidth - _seaplaneWidth && y <= _pictureHeight - _seaplaneHeight)
Не учтены все условия, при которых объект может выйти за границы
@ -0,0 +82,4 @@
{
if (x <= _pictureWidth - _seaplaneWidth && y <= _pictureHeight - _seaplaneHeight)
{
_startPosX = x;
Нет корректировки координат, если при текущих объект "выходит" за границы
Pull request closed