rl.centurion.client.mapping
Class CenturionBoardRenderer

java.lang.Object
  extended by java.util.Observable
      extended by rl.client.mapping.BoardRenderer
          extended by rl.client.mapping.HexBoardRenderer
              extended by rl.centurion.client.mapping.CenturionBoardRenderer

public class CenturionBoardRenderer
extends HexBoardRenderer


Nested Class Summary
 class CenturionBoardRenderer.FireAttempt
           
 
Nested classes/interfaces inherited from class rl.client.mapping.BoardRenderer
BoardRenderer.FontSize
 
Field Summary
(package private)  java.util.Vector<CenturionBoardRenderer.FireAttempt> m_FireAttempts
           
(package private)  java.util.HashMap<GameElement,LocationVectorSpriteChain> m_MovementOrderSequences
           
(package private)  java.util.HashMap<GameElement,HexStraightArrowSprite> m_PaintAttempts
           
(package private)  java.util.HashMap<GameElement,PaintingMarkerSprite> m_PaintedElements
           
 
Fields inherited from class rl.client.mapping.BoardRenderer
m_View
 
Constructor Summary
CenturionBoardRenderer()
           
 
Method Summary
 void addGameElement(GameElement element, HexLocation location, Affiliation aff, boolean transporting)
           
 void addInvisibleGameElement(GameElement element, HexLocation location, Affiliation aff)
           
 void clearDeployments()
           
 void clearFireAttempts()
           
 void clearGameElement(GameElement element)
           
 void clearHighlightedElements()
           
 void clearHighlightedElements(java.util.Vector<GameElement> elements)
           
 void clearMovementOrderSequence(GameElement element)
           
 void clearPaintAttempts()
           
 void clearPaintedElements()
           
 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)
           
 void hideDeployments(java.util.Vector<Deployment> deployments)
           
 void highlightElements(java.util.Vector<GameElement> elements, java.awt.Color highlightColour)
           
 void setBoard(Board board)
           
 void setGameElementLocation(GameElement element, HexLocation location, Affiliation aff, boolean visible, boolean transporting)
           
 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(GameElement source, GameElement target)
           
 void showPaintAttempt(GameElement source, GameElement target)
           
 void showPaintedElement(GameElement element)
           
 void updateGameElementStatus(GameElement element, int turn)
           
 
Methods inherited from class rl.client.mapping.HexBoardRenderer
addMapElements, drawBoard, getCursorLocation, getHex, getHexGrid, getSize, initialise, setBoard, setCursorLocation
 
Methods inherited from class rl.client.mapping.BoardRenderer
clear, getFont, getSpriteManager, getTheme, setTheme
 
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
 

Field Detail

m_PaintAttempts

java.util.HashMap<GameElement,HexStraightArrowSprite> m_PaintAttempts

m_PaintedElements

java.util.HashMap<GameElement,PaintingMarkerSprite> m_PaintedElements

m_FireAttempts

java.util.Vector<CenturionBoardRenderer.FireAttempt> m_FireAttempts

m_MovementOrderSequences

java.util.HashMap<GameElement,LocationVectorSpriteChain> m_MovementOrderSequences
Constructor Detail

CenturionBoardRenderer

public CenturionBoardRenderer()
Method Detail

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

setBoard

public void setBoard(Board board)
Overrides:
setBoard in class HexBoardRenderer

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)

addInvisibleGameElement

public void addInvisibleGameElement(GameElement element,
                                    HexLocation location,
                                    Affiliation aff)

clearGameElement

public void clearGameElement(GameElement element)

setGameElementLocation

public void setGameElementLocation(GameElement element,
                                   HexLocation location,
                                   Affiliation aff,
                                   boolean visible,
                                   boolean transporting)

updateGameElementStatus

public void updateGameElementStatus(GameElement element,
                                    int turn)

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

showPaintAttempt

public void showPaintAttempt(GameElement source,
                             GameElement target)

clearPaintAttempts

public void clearPaintAttempts()

showFireAttempt

public void showFireAttempt(GameElement source,
                            GameElement target)

clearFireAttempts

public void clearFireAttempts()

showPaintedElement

public void showPaintedElement(GameElement element)

clearPaintedElements

public void clearPaintedElements()