evolution.events
Class SquareChangedEvt

evolution.events.Event
  |
  +--evolution.events.SquareChangedEvt

public class SquareChangedEvt
extends Event

Event fired when a square changed.


Constructor Summary
SquareChangedEvt(SquareOfLand square)
          Create a new square changed event.

Method Summary
 StringgetConstructionState()
          Return the state of the construction on this square, null if there is no construction.
 StringgetHumanEnergyBufferState()
          Return the energybufferstate of the human, that was standing on the square that changed.
 StringgetHumanState()
          Return the state of the human on this square, null if there is no human.
 StringgetLandState()
          Return the state of the land on this square, null if the landtype is yet unknown.
 SquareOfLandgetSquare()
          Return the square of land which changed.
 intgetX()
          Return the x coordinate.
 intgetY()
          Return the y coordinate.
 booleanisActive()
          Is this square the active selection? e.g.
 booleanisSelected()
          Is this square selected? e.g.

Constructor Detail

SquareChangedEvt

public SquareChangedEvt(SquareOfLand square)
Create a new square changed event.
Parameters:
square - The square that changed.
Method Detail

getConstructionState

public String getConstructionState()
Return the state of the construction on this square, null if there is no construction.

getHumanEnergyBufferState

public String getHumanEnergyBufferState()
Return the energybufferstate of the human, that was standing on the square that changed.

getHumanState

public String getHumanState()
Return the state of the human on this square, null if there is no human.

getLandState

public String getLandState()
Return the state of the land on this square, null if the landtype is yet unknown.

getSquare

public SquareOfLand getSquare()
Return the square of land which changed.

getX

public int getX()
Return the x coordinate.

getY

public int getY()
Return the y coordinate.

isActive

public boolean isActive()
Is this square the active selection? e.g. for drawing a special border so the player can recognize this visually

isSelected

public boolean isSelected()
Is this square selected? e.g. for drawing a special border so the player can recognize this visually

Association Links

to Class evolution.lands.SquareOfLand

The square of land which changed.

a gvijf production