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 {
private PaddlesCount _paddlesCount;
private EntityCatamaran _entityCatamaran;
private final EntityCatamaran _entityCatamaran;
public DrawningCatamaranPaddle(EntityCatamaran entityCatamaran) {
_entityCatamaran = entityCatamaran;
}
public void setEnumNumber(int paddlesCount) {
for (PaddlesCount val : _paddlesCount.values()) {
for (PaddlesCount val : PaddlesCount.values()) {
if (val.enumNumber == paddlesCount) {
_paddlesCount = val;
return;