PIbd-23. Ivanov V.N. Lab Work 01. Hard #1

Closed
Vyacheslav wants to merge 2 commits from LabWork1 into main
Showing only changes of commit 46c7fd0dfc - Show all commits

View File

@ -42,15 +42,15 @@ public class DrawningDoor {
g2d.fillRect(CurX + 15, CurY + 40, 10, 20);
g2d.fillRect(CurX + 30, CurY + 40, 10, 20);
if (DoorNumberType == DoorNumberType.Three || DoorNumberType == DoorNumberType.Four || DoorNumberType == DoorNumberType.Five) {
if (DoorNumberType() == DoorNumberType.Three || DoorNumberType() == DoorNumberType.Four || DoorNumberType() == DoorNumberType.Five) {
g2d.fillRect(CurX + 45, CurY + 40, 10, 20);
}
if (DoorNumberType == DoorNumberType.Four || DoorNumberType == DoorNumberType.Five) {
if (DoorNumberType() == DoorNumberType.Four || DoorNumberType() == DoorNumberType.Five) {
g2d.fillRect(CurX + 60, CurY + 40, 10, 20);
}
if (DoorNumberType == DoorNumberType.Five) {
if (DoorNumberType() == DoorNumberType.Five) {
g2d.fillRect(CurX + 75, CurY + 40, 10, 20);
}
}