. All rights reserved.
Use is subject to license terms, see
LICENSE.txt.
Constructor Summary |
Event(int number,
Position position,
int symbol,
int mapDisplayFormat,
int foreColor,
int backColor,
int symbolSize)
Create a new Event. |
number
protected final int number
- The event number.
position
protected final Position position
- The position.
symbol
protected final int symbol
- The symbol.
mapDisplayFormat
protected final int mapDisplayFormat
- The map display format.
foreColor
protected final int foreColor
- The symbol foreground color.
backColor
protected final int backColor
- The symbol background color.
symbolSize
protected final int symbolSize
- The symbol size.
Event
public Event(int number,
Position position,
int symbol,
int mapDisplayFormat,
int foreColor,
int backColor,
int symbolSize)
- Create a new Event.
- Parameters:
number
- the event number.position
- the event positionsymbol
- the event symbol.mapDisplayFormat
- the map display format.foreColor
- the foreground colour.backColor
- the background colour.symbolSize
- the symbol size.
equals
public boolean equals(Object that)
- Test if two events are equal. The position and symbol are compared.
- Overrides:
equals
in class Object
- Parameters:
that
- the object to compare against.
- Returns:
- true if the objects are equal.
hashCode
public int hashCode()
- Return the hash code for this object.
- Overrides:
hashCode
in class Object
- Returns:
- the hash code for this object.
getBackColor
public int getBackColor()
- Get the background color.
- Returns:
- tge background color.
getForeColor
public int getForeColor()
- Get the foreground color,
- Returns:
- the foreground color.
getMapDisplayFormat
public int getMapDisplayFormat()
- get the nap display format.
- Returns:
- the map display format.
getNumber
public int getNumber()
- Get the event number.
- Returns:
- the event number.
getPosition
public Position getPosition()
- Get the event position.
- Returns:
- the event position.
getSymbol
public int getSymbol()
- Get the event symbol.
- Returns:
- the event symbol.
getSymbolSize
public int getSymbolSize()
- Get the symbol size.
- Returns:
- the symbol size.