|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCanvas3D
megamek.client.ui.AWT.boardview3d.BoardView3D
public class BoardView3D
Displays the board; lets the user scroll around and select points on it.
| Field Summary | |
|---|---|
(package private) boolean |
dragged
|
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
BoardView3D(IGame game)
Construct a new board view for the specified game |
|
| Method Summary | |
|---|---|
void |
addAttack(AttackAction aa)
|
void |
addBoardViewListener(BoardViewListener listener)
Adds the specified board listener to receive board events from this board. |
void |
addDisplayable(IDisplayable disp)
|
void |
boardChangedAllHexes(BoardEvent b)
Sent when all hexes on the board changed |
void |
boardChangedHex(BoardEvent b)
Sent when Hex on the Board changed |
void |
boardNewBoard(BoardEvent b)
Sent when Board completely changed |
void |
centerOnHex(Coords c)
|
void |
checkLOS(Coords coords)
|
void |
clearMovementData()
|
void |
cursor(Coords coords)
Determines if this Board contains the Coords, and if so, "cursors" that Coords. |
void |
drawMovementData(Entity entity,
MovePath md)
|
void |
drawRuler(Coords s,
Coords e,
java.awt.Color sc,
java.awt.Color ec)
|
void |
gameBoardChanged(GameBoardChangeEvent e)
|
void |
gameBoardNew(GameBoardNewEvent e)
|
void |
gameEnd(GameEndEvent e)
|
void |
gameEntityChange(GameEntityChangeEvent e)
|
void |
gameEntityNew(GameEntityNewEvent e)
|
void |
gameEntityNewOffboard(GameEntityNewOffboardEvent e)
|
void |
gameEntityRemove(GameEntityRemoveEvent e)
|
void |
gameMapQuery(GameMapQueryEvent e)
|
void |
gameNewAction(GameNewActionEvent e)
|
void |
gamePhaseChange(GamePhaseChangeEvent e)
|
void |
gamePlayerChange(GamePlayerChangeEvent e)
|
void |
gamePlayerChat(GamePlayerChatEvent e)
|
void |
gamePlayerConnected(GamePlayerConnectedEvent e)
|
void |
gamePlayerDisconnected(GamePlayerDisconnectedEvent e)
|
void |
gameReport(GameReportEvent e)
|
void |
gameSettingsChange(GameSettingsChangeEvent e)
|
void |
gameTurnChange(GameTurnChangeEvent e)
|
java.awt.Component |
getComponent()
|
Coords |
getLastCursor()
|
Player |
getLocalPlayer()
|
Coords |
getSelected()
|
TilesetManager |
getTilesetManager()
|
void |
hideTooltip()
|
void |
highlight(Coords coords)
Determines if this Board contains the Coords, and if so, highlights that Coords. |
boolean |
isMovingUnits()
|
void |
markDeploymentHexesFor(Entity en)
|
void |
mouseClicked(java.awt.event.MouseEvent me)
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent me)
|
void |
mouseExited(java.awt.event.MouseEvent me)
|
void |
mouseMoved(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
void |
postRender()
|
void |
preferenceChange(PreferenceChangeEvent e)
|
void |
processBoardViewEvent(BoardViewEvent event)
Notifies attached board listeners of the event. |
void |
redrawEntity(Entity entity)
|
void |
refreshAttacks()
|
void |
refreshDisplayables()
|
void |
refreshMinefields()
|
void |
removeAttacksFor(Entity entity)
|
void |
removeBoardViewListener(BoardViewListener listener)
Removes the specified board listener. |
void |
select(Coords coords)
Determines if this Board contains the Coords, and if so, "selects" that Coords. |
void |
setFirstLOS(Coords c)
|
void |
setLocalPlayer(Player p)
|
(package private) java.lang.String |
setView(int index)
|
void |
showPopup(java.lang.Object popup,
Coords c)
|
boolean |
toggleIsometric()
|
void |
WeaponSelected(MechDisplayEvent b)
Sent when user selects a weapon in the weapon panel. |
void |
zoomIn()
|
void |
zoomOut()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface megamek.client.ui.IBoardView |
|---|
addKeyListener |
| Field Detail |
|---|
static final long serialVersionUID
boolean dragged
| Constructor Detail |
|---|
public BoardView3D(IGame game)
throws java.io.IOException
game -
java.io.IOException| Method Detail |
|---|
java.lang.String setView(int index)
public void preferenceChange(PreferenceChangeEvent e)
preferenceChange in interface IPreferenceChangeListenerpublic void addBoardViewListener(BoardViewListener listener)
addBoardViewListener in interface IBoardViewlistener - the board listener.BoardViewListenerpublic void removeBoardViewListener(BoardViewListener listener)
removeBoardViewListener in interface IBoardViewlistener - the board listener.public void processBoardViewEvent(BoardViewEvent event)
processBoardViewEvent in interface IBoardViewevent - the board event.public void addDisplayable(IDisplayable disp)
addDisplayable in interface IBoardViewpublic void postRender()
public void showPopup(java.lang.Object popup,
Coords c)
showPopup in interface IBoardViewpublic void hideTooltip()
hideTooltip in interface IBoardViewpublic boolean isMovingUnits()
isMovingUnits in interface IBoardViewpublic void redrawEntity(Entity entity)
redrawEntity in interface IBoardViewpublic void centerOnHex(Coords c)
centerOnHex in interface IBoardView
public void drawMovementData(Entity entity,
MovePath md)
drawMovementData in interface IBoardViewpublic void clearMovementData()
clearMovementData in interface IBoardViewpublic void setLocalPlayer(Player p)
setLocalPlayer in interface IBoardViewpublic Player getLocalPlayer()
getLocalPlayer in interface IBoardViewpublic void markDeploymentHexesFor(Entity en)
markDeploymentHexesFor in interface IBoardViewpublic void addAttack(AttackAction aa)
addAttack in interface IBoardViewpublic void removeAttacksFor(Entity entity)
removeAttacksFor in interface IBoardViewpublic void refreshAttacks()
refreshAttacks in interface IBoardViewpublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent me)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked in interface java.awt.event.MouseListener
public void drawRuler(Coords s,
Coords e,
java.awt.Color sc,
java.awt.Color ec)
drawRuler in interface IBoardViewpublic Coords getLastCursor()
getLastCursor in interface IBoardViewpublic Coords getSelected()
getSelected in interface IBoardViewpublic void setFirstLOS(Coords c)
setFirstLOS in interface IBoardViewc - The firstLOS to set.public void select(Coords coords)
select in interface IBoardViewcoords - the Coords.public void highlight(Coords coords)
highlight in interface IBoardViewcoords - the Coords.public void cursor(Coords coords)
cursor in interface IBoardViewcoords - the Coords.public void checkLOS(Coords coords)
checkLOS in interface IBoardViewpublic void boardNewBoard(BoardEvent b)
BoardListener
boardNewBoard in interface BoardListenerb - an event containing information about the changepublic void boardChangedHex(BoardEvent b)
BoardListener
boardChangedHex in interface BoardListenerb - an event containing information about the changepublic void boardChangedAllHexes(BoardEvent b)
BoardListener
boardChangedAllHexes in interface BoardListenerb - an event containing information about the changepublic void gameEntityNew(GameEntityNewEvent e)
gameEntityNew in interface GameListenerpublic void gameEntityRemove(GameEntityRemoveEvent e)
gameEntityRemove in interface GameListenerpublic void gameEntityChange(GameEntityChangeEvent e)
gameEntityChange in interface GameListenerpublic void gameNewAction(GameNewActionEvent e)
gameNewAction in interface GameListenerpublic void gameBoardNew(GameBoardNewEvent e)
gameBoardNew in interface GameListenerpublic void gameBoardChanged(GameBoardChangeEvent e)
gameBoardChanged in interface GameListenerpublic void gamePhaseChange(GamePhaseChangeEvent e)
gamePhaseChange in interface GameListenerpublic void WeaponSelected(MechDisplayEvent b)
MechDisplayListener
WeaponSelected in interface MechDisplayListenerb - an eventpublic void zoomIn()
zoomIn in interface IBoardViewpublic void zoomOut()
zoomOut in interface IBoardViewpublic java.awt.Component getComponent()
getComponent in interface IBoardViewpublic TilesetManager getTilesetManager()
getTilesetManager in interface IBoardViewpublic void refreshMinefields()
refreshMinefields in interface IBoardViewpublic void refreshDisplayables()
refreshDisplayables in interface IBoardViewpublic void gamePlayerConnected(GamePlayerConnectedEvent e)
gamePlayerConnected in interface GameListenerpublic void gamePlayerDisconnected(GamePlayerDisconnectedEvent e)
gamePlayerDisconnected in interface GameListenerpublic void gamePlayerChange(GamePlayerChangeEvent e)
gamePlayerChange in interface GameListenerpublic void gamePlayerChat(GamePlayerChatEvent e)
gamePlayerChat in interface GameListenerpublic void gameTurnChange(GameTurnChangeEvent e)
gameTurnChange in interface GameListenerpublic void gameReport(GameReportEvent e)
gameReport in interface GameListenerpublic void gameEnd(GameEndEvent e)
gameEnd in interface GameListenerpublic void gameSettingsChange(GameSettingsChangeEvent e)
gameSettingsChange in interface GameListenerpublic void gameMapQuery(GameMapQueryEvent e)
gameMapQuery in interface GameListenerpublic void gameEntityNewOffboard(GameEntityNewOffboardEvent e)
gameEntityNewOffboard in interface GameListenerpublic void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent me)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic boolean toggleIsometric()
toggleIsometric in interface IBoardView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||