25 lines
397 B
Java
25 lines
397 B
Java
|
public enum Engines
|
||
|
{
|
||
|
TwoEngines(1),
|
||
|
FourEngines(2),
|
||
|
SixEngines(6);
|
||
|
|
||
|
Engines(int i) {
|
||
|
|
||
|
}
|
||
|
|
||
|
public static Engines GetNumEngines(int i)
|
||
|
{
|
||
|
switch(i)
|
||
|
{
|
||
|
case 1:
|
||
|
return TwoEngines;
|
||
|
case 2:
|
||
|
return FourEngines;
|
||
|
case 3:
|
||
|
return SixEngines;
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|