1.0
This commit is contained in:
parent
c913a06626
commit
6b543de74e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user