示例#1
0
 public int MaxUnitsDockingStatus(GameConstants.AircraftDockingStatus status)
 {
     //switch (status)
     //{
     //    case GameConstants.AircraftDockingStatus.Storage:
     //        return MaxAircraftStorage;
     //    case GameConstants.AircraftDockingStatus.TankingAndRefitting:
     //        return MaxAircraftTanking;
     //    case GameConstants.AircraftDockingStatus.ReadyForTakeoff:
     //        return MaxAircraftReadyForTakeoff;
     //    case GameConstants.AircraftDockingStatus.Flying:
     //        return int.MaxValue;
     //    default:
     //        return 0;
     //}
     return(MaxAircraft);
 }
示例#2
0
 public double GetStatusChangeTimeSec(GameConstants.AircraftDockingStatus fromStatus,
                                      GameConstants.AircraftDockingStatus toStatus)
 {
     return(_TimeStorageStatusTimeSec[(int)fromStatus, (int)toStatus]);
 }
示例#3
0
 public void SetStatusChangeTimeSec(GameConstants.AircraftDockingStatus fromStatus,
                                    GameConstants.AircraftDockingStatus toStatus, double seconds)
 {
     _TimeStorageStatusTimeSec[(int)fromStatus, (int)toStatus] = seconds;
 }