Package megamek.server
Class IndustrialElevatorProcessor
java.lang.Object
megamek.server.DynamicTerrainProcessor
megamek.server.IndustrialElevatorProcessor
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
-
Field Summary
Fields inherited from class megamek.server.DynamicTerrainProcessor
gameManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoEndPhaseChanges(Vector<Report> vPhaseReport) Process terrain changes in the end phasevoidScans the board for INDUSTRIAL_ELEVATOR terrain and creates elevator objects.
-
Constructor Details
-
IndustrialElevatorProcessor
-
-
Method Details
-
doEndPhaseChanges
Description copied from class:DynamicTerrainProcessorProcess terrain changes in the end phase- Specified by:
doEndPhaseChangesin classDynamicTerrainProcessor- 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).
-