Mochalov D.V. Hard LabWork05 #5

Closed
b0n3l3sS wants to merge 4 commits from LabWork05 into LabWork04
2 changed files with 5 additions and 4 deletions
Showing only changes of commit aa76d75acf - Show all commits

View File

@ -6,11 +6,11 @@ public class ExtraRoundWheelDraw implements IDrawningExtra{
private Color color;
public void setExtraNum(int num) {
switch (num) {
case 0: {
case 3: {
wheelsCount = WheelsCount.Three;
break;
}
case 1: {
case 4: {
wheelsCount = WheelsCount.Four;
break;
}

View File

@ -6,11 +6,11 @@ public class ExtraStarWheelDraw implements IDrawningExtra{
private Color color;
public void setExtraNum(int num) {
switch (num) {
case 0: {
case 3: {
wheelsCount = WheelsCount.Three;
break;
}
case 1: {
case 4: {
wheelsCount = WheelsCount.Four;
break;
}
@ -29,6 +29,7 @@ public class ExtraStarWheelDraw implements IDrawningExtra{
}
public void DrawExtra(int startPosX, int startPosY, Graphics2D g) {
g.setColor(color);
extraWheelsDraw.DrawExtra(startPosX, startPosY, g);
DrawStarOnWheel(startPosX, startPosY + 30, g);
DrawStarOnWheel(startPosX + 90, startPosY + 30, g);