done
This commit is contained in:
parent
ec2c529fa5
commit
2c02421db6
@ -5,13 +5,15 @@ import Entities.*;
|
|||||||
|
|
||||||
public class DrawingPortholes {
|
public class DrawingPortholes {
|
||||||
private CountPortholes _porthole;
|
private CountPortholes _porthole;
|
||||||
|
public int Count;
|
||||||
|
|
||||||
public CountPortholes getCount()
|
public CountPortholes getCount()
|
||||||
{
|
{
|
||||||
return _porthole;
|
return _porthole;
|
||||||
}
|
}
|
||||||
public void SetCount (int count) {
|
public void SetCount (int count) {
|
||||||
switch (count) {
|
Count = count;
|
||||||
|
switch (Count) {
|
||||||
case 10:
|
case 10:
|
||||||
_porthole = CountPortholes.Ten;
|
_porthole = CountPortholes.Ten;
|
||||||
break;
|
break;
|
||||||
@ -21,6 +23,9 @@ public class DrawingPortholes {
|
|||||||
case 30:
|
case 30:
|
||||||
_porthole = CountPortholes.Thirty;
|
_porthole = CountPortholes.Thirty;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
_porthole = CountPortholes.Ten;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user