rl.leviathan.client.mapping
Class LeviathanBoardRenderer
java.lang.Object
java.util.Observable
rl.client.mapping.BoardRenderer
rl.client.mapping.HexBoardRenderer
rl.leviathan.client.mapping.LeviathanBoardRenderer
public class LeviathanBoardRenderer
- extends HexBoardRenderer
|
Method Summary |
void |
addGameElement(GameElement element,
HexLocation location,
Affiliation aff,
boolean transporting)
|
void |
clearDeployments()
|
void |
clearFireAttempts()
|
void |
clearGameElement(GameElement element)
|
void |
clearHighlightedElements()
|
void |
clearHighlightedElements(java.util.Vector<GameElement> elements)
|
void |
clearMovementOrderSequence(GameElement element)
|
void |
displayMovementOrderSequence(GameElement element,
java.util.Vector<Location> locations,
java.awt.Color fillColour,
java.awt.Color drawColour)
|
BoardHex |
getBoardHex(MapHex theMapHex,
Theme theme,
int boardX,
int boardY)
|
Coordinate |
getSpriteCoordinate(Sprite sprite)
|
void |
hideDeployments(java.util.Vector<Deployment> deployments)
|
void |
highlightElements(java.util.Vector<GameElement> elements,
java.awt.Color highlightColour)
|
void |
setGameElementLocation(GameElement element,
HexLocation location,
Affiliation aff)
|
void |
setHighlightElementColor(GameElement element,
java.awt.Color highlightColour)
|
void |
setHighlightElementLocation(Location location)
|
void |
setView(javax.swing.JComponent view)
|
void |
showDeployments(java.util.Vector<Deployment> deployments)
|
void |
showFireAttempt(Coordinate sourceCoord,
Coordinate targetCoord)
|
void |
showFireAttempt(GameElement source,
GameElement target)
|
void |
updateGameElementStatus(GameElement element,
int turn)
|
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_DeploymentZones
java.util.HashMap<java.awt.Rectangle,HexGridSprite> m_DeploymentZones
m_GameElements
java.util.HashMap<GameElement,Sprite> m_GameElements
m_HighlightedElements
java.util.HashMap<GameElement,Sprite> m_HighlightedElements
m_CurrentDeploymentZone
HexGridSprite m_CurrentDeploymentZone
m_MovementOrderSequences
java.util.HashMap<GameElement,LocationVectorSpriteChain> m_MovementOrderSequences
m_PaintAttempts
java.util.HashMap<GameElement,HexStraightArrowSprite> m_PaintAttempts
m_PaintedElements
java.util.HashMap<GameElement,PaintingMarkerSprite> m_PaintedElements
m_FireAttempts
java.util.Vector<LeviathanBoardRenderer.FireAttempt> m_FireAttempts
LeviathanBoardRenderer
public LeviathanBoardRenderer()
getBoardHex
public BoardHex getBoardHex(MapHex theMapHex,
Theme theme,
int boardX,
int boardY)
- Specified by:
getBoardHex in class HexBoardRenderer
setView
public void setView(javax.swing.JComponent view)
- Overrides:
setView in class BoardRenderer
showDeployments
public void showDeployments(java.util.Vector<Deployment> deployments)
- Specified by:
showDeployments in class HexBoardRenderer
hideDeployments
public void hideDeployments(java.util.Vector<Deployment> deployments)
- Specified by:
hideDeployments in class HexBoardRenderer
clearDeployments
public void clearDeployments()
- Specified by:
clearDeployments in class HexBoardRenderer
addGameElement
public void addGameElement(GameElement element,
HexLocation location,
Affiliation aff,
boolean transporting)
clearGameElement
public void clearGameElement(GameElement element)
setGameElementLocation
public void setGameElementLocation(GameElement element,
HexLocation location,
Affiliation aff)
highlightElements
public void highlightElements(java.util.Vector<GameElement> elements,
java.awt.Color highlightColour)
- Specified by:
highlightElements in class HexBoardRenderer
setHighlightElementLocation
public void setHighlightElementLocation(Location location)
- Specified by:
setHighlightElementLocation in class HexBoardRenderer
setHighlightElementColor
public void setHighlightElementColor(GameElement element,
java.awt.Color highlightColour)
- Specified by:
setHighlightElementColor in class HexBoardRenderer
clearHighlightedElements
public void clearHighlightedElements()
- Specified by:
clearHighlightedElements in class HexBoardRenderer
clearHighlightedElements
public void clearHighlightedElements(java.util.Vector<GameElement> elements)
displayMovementOrderSequence
public void displayMovementOrderSequence(GameElement element,
java.util.Vector<Location> locations,
java.awt.Color fillColour,
java.awt.Color drawColour)
- Specified by:
displayMovementOrderSequence in class HexBoardRenderer
clearMovementOrderSequence
public void clearMovementOrderSequence(GameElement element)
- Specified by:
clearMovementOrderSequence in class HexBoardRenderer
showFireAttempt
public void showFireAttempt(GameElement source,
GameElement target)
showFireAttempt
public void showFireAttempt(Coordinate sourceCoord,
Coordinate targetCoord)
getSpriteCoordinate
public Coordinate getSpriteCoordinate(Sprite sprite)
updateGameElementStatus
public void updateGameElementStatus(GameElement element,
int turn)
clearFireAttempts
public void clearFireAttempts()