Переименован метод-свойство
This commit is contained in:
parent
1435b6b56c
commit
d0913e1f47
@ -5,13 +5,14 @@ import java.awt.*;
|
||||
public class DrawingEngines {
|
||||
private EnumEnginesCount _enumEnginesCount;
|
||||
|
||||
public void SetEnginesCount(int enginesCount) {
|
||||
public void SetEnumEnginesCount(int enginesCount) {
|
||||
for (EnumEnginesCount val : EnumEnginesCount.values()) {
|
||||
if (val.count == enginesCount) {
|
||||
this._enumEnginesCount = val;
|
||||
return;
|
||||
}
|
||||
}
|
||||
this._enumEnginesCount = EnumEnginesCount.Two;
|
||||
}
|
||||
|
||||
private void DrawEngine(Graphics2D g2d, Color color, int x, int y, int w, int h) {
|
||||
|
@ -27,7 +27,7 @@ public class DrawingStormtrooper {
|
||||
}
|
||||
|
||||
public void SetEnginesCount(int enginesCount) {
|
||||
_drawingEngines.SetEnginesCount(enginesCount);
|
||||
_drawingEngines.SetEnumEnginesCount(enginesCount);
|
||||
}
|
||||
|
||||
public void SetPosition(int x, int y) {
|
||||
|
@ -72,6 +72,7 @@
|
||||
<horizontalTextPosition value="0"/>
|
||||
<icon value="ProjectStormtrooper/img/arrowLEFT.png"/>
|
||||
<text value=""/>
|
||||
<verticalAlignment value="0"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="25771" class="javax.swing.JButton" binding="buttonRight">
|
||||
|
Loading…
Reference in New Issue
Block a user