Class IndustrialElevatorProcessor

java.lang.Object
megamek.server.DynamicTerrainProcessor
megamek.server.IndustrialElevatorProcessor

public class IndustrialElevatorProcessor extends DynamicTerrainProcessor
Processes industrial elevator movement during the End Phase.

This processor handles player-controlled industrial elevators, which are distinct from the random Solaris 7 moving walls handled by ElevatorProcessor.

Key responsibilities:

  • Initialize elevators from terrain data on first round
  • Process CallElevatorAction to queue elevator calls
  • Move elevator platforms 1 level per turn toward nearest caller
  • Check elevator functionality (disabled if shaft damaged)
  • Generate movement reports
Since:
0.51.01
  • Constructor Details

    • IndustrialElevatorProcessor

      public IndustrialElevatorProcessor(TWGameManager gameManager)
  • Method Details

    • doEndPhaseChanges

      public void doEndPhaseChanges(Vector<Report> vPhaseReport)
      Description copied from class: DynamicTerrainProcessor
      Process terrain changes in the end phase
      Specified by:
      doEndPhaseChanges in class DynamicTerrainProcessor
      Parameters:
      vPhaseReport - reports for the server to send out
    • initializeElevators

      public void initializeElevators()
      Scans the board for INDUSTRIAL_ELEVATOR terrain and creates elevator objects.

      This method should be called during game initialization (after board is set) to ensure elevators are available before movement phase.

      Skips initialization if elevators already exist to preserve runtime state (platform positions from player movement).