PIbd-21. Teryokhin A.S. Lab work 01 #1

Closed
katana wants to merge 1 commits from Lab1Base into main
Owner
No description provided.
katana added 1 commit 2023-10-04 20:39:03 +04:00
eegov approved these changes 2023-10-15 16:32:19 +04:00
eegov left a comment
Collaborator

Зачтено с понижением балла(ов)

Зачтено с понижением балла(ов)
@ -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)
Collaborator

Что тут проверяется????

Что тут проверяется????
@ -0,0 +80,4 @@
/// <param name="y">Координата Y</param>
public void SetPosition(int x, int y)
{
if (x <= _pictureWidth - _seaplaneWidth && y <= _pictureHeight - _seaplaneHeight)
Collaborator

Не учтены все условия, при которых объект может выйти за границы

Не учтены все условия, при которых объект может выйти за границы
@ -0,0 +82,4 @@
{
if (x <= _pictureWidth - _seaplaneWidth && y <= _pictureHeight - _seaplaneHeight)
{
_startPosX = x;
Collaborator

Нет корректировки координат, если при текущих объект "выходит" за границы

Нет корректировки координат, если при текущих объект "выходит" за границы
eegov closed this pull request 2023-10-15 16:32:25 +04:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: katana/PIbd21.TeryokhinA.S.Seaplane.Common.#1
No description provided.