Class SmokeCloud

java.lang.Object
megamek.server.SmokeCloud
All Implemented Interfaces:
Serializable

public class SmokeCloud extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • SmokeCloud

      public SmokeCloud(List<Coords> coords, int boardId, int level, int duration, int roundOfGeneration)
  • Method Details

    • setSmokeLevel

      public void setSmokeLevel(int level)
    • reduceSmokeLevel

      public void reduceSmokeLevel()
      Reduces the level of smoke, heavy goes to light, LI heavy goes to LI light.
    • getSmokeLevel

      public int getSmokeLevel()
      Returns the level of smoke, odd levels will correspond to light smoke while even levels will be heavy smoke.
      Returns:
      The smoke level
    • isCompletelyDissipated

      public boolean isCompletelyDissipated()
      Returns:
      True when this SmokeCloud is at a smoke level of SMOKE_NONE (= 0).
    • getCoordsList

      public List<Coords> getCoordsList()
    • replaceCoords

      public void replaceCoords(Collection<Coords> newCoords)
      Removes all the previously stored Coords of this SmokeCloud and stores the given Coords instead.
    • hasNoHexes

      public boolean hasNoHexes()
      Returns:
      True when this SmokeCloud has no remaining smoke hex coordinates.
    • setDuration

      public void setDuration(int duration)
    • getDuration

      public int getDuration()
    • setDrift

      public void setDrift(boolean drift)
    • didDrift

      public boolean didDrift()
    • getRoundOfGeneration

      public int getRoundOfGeneration()
    • getBoardId

      public int getBoardId()