Esempio n. 1
0
 public void DisableEnableRoom(ShipLocations location, bool status)
 {
     roomsEnabled[location] = status;
     if (location == ShipLocations.Comms)
     {
         commsOnline = status;
     }
 }
Esempio n. 2
0
 public int CheckPowerRequirements(ShipLocations location)
 {
     if ((roomsPower [location] + calculatePowerConsumed()) > MAX_SHIP_POWER)
     {
         return(-1);
     }
     return(roomsPower [location]);
 }
Esempio n. 3
0
 public string CheckDisable(ShipLocations location)
 {
     if (location == ShipLocations.Garden)
     {
         if (realTimeElapsedInSeconds < 120)
         {
             realTimeElapsedInSeconds = 120;
         }
         return("Garden deactivated. Oxygen purification system is now offline.\nAuxiliary oxygen supply will be depleted in 2 minutes.");
     }
     else if (location == ShipLocations.Medical)
     {
         energyState  = EnergyState.LOW;
         playerEnergy = 10;
         return("Medical systems deactivated. Extended life support system is now offline.\nAutomatic energy regeneration is now disabled.");
     }
     return(null);
 }