This commit is contained in:
pyzhov.egor 2024-02-12 00:18:53 +04:00
parent c913a06626
commit 6b543de74e

View File

@ -2,13 +2,13 @@ import java.awt.*;
public class DrawningCatamaranPaddle { public class DrawningCatamaranPaddle {
private PaddlesCount _paddlesCount; private PaddlesCount _paddlesCount;
private EntityCatamaran _entityCatamaran; private final EntityCatamaran _entityCatamaran;
public DrawningCatamaranPaddle(EntityCatamaran entityCatamaran) { public DrawningCatamaranPaddle(EntityCatamaran entityCatamaran) {
_entityCatamaran = entityCatamaran; _entityCatamaran = entityCatamaran;
} }
public void setEnumNumber(int paddlesCount) { public void setEnumNumber(int paddlesCount) {
for (PaddlesCount val : _paddlesCount.values()) { for (PaddlesCount val : PaddlesCount.values()) {
if (val.enumNumber == paddlesCount) { if (val.enumNumber == paddlesCount) {
_paddlesCount = val; _paddlesCount = val;
return; return;