megamek.server
Class WeatherProcessor

java.lang.Object
  extended by megamek.server.DynamicTerrainProcessor
      extended by megamek.server.WeatherProcessor

public class WeatherProcessor
extends DynamicTerrainProcessor

Cycle through hexes on a map and make any necessary adjustments based on weather What will happen here: - add light and heavy snow for snowfall - add ice for snowfall, sleet, and ice storm - add/take away(?) rapids and torrent for winds - add mud, rapids, and torrent for rain (no that has to be done before play starts so it is in server.applyBoardSettings() - put out fires (DONE)


Field Summary
(package private)  int heavySnowTurn
           
(package private)  int iceTurn
           
(package private)  int modSnowTurn
           
(package private)  int sleetTurn
           
(package private)  java.util.Vector<Report> vPhaseReport
           
 
Fields inherited from class megamek.server.DynamicTerrainProcessor
server
 
Constructor Summary
WeatherProcessor(Server server)
           
 
Method Summary
(package private)  void doEndPhaseChanges(java.util.Vector<Report> vPhaseReport)
          Process terrain changes in the end phase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vPhaseReport

java.util.Vector<Report> vPhaseReport

modSnowTurn

int modSnowTurn

heavySnowTurn

int heavySnowTurn

sleetTurn

int sleetTurn

iceTurn

int iceTurn
Constructor Detail

WeatherProcessor

public WeatherProcessor(Server server)
Method Detail

doEndPhaseChanges

void doEndPhaseChanges(java.util.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