PIbd-22_Aleikin_A.M._AirBom.../Engines.java

25 lines
397 B
Java
Raw Permalink Normal View History

2022-11-29 20:50:45 +04:00
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;
}
}