megamek.client.ui.AWT.boardview3d
Class HoverInfo

java.lang.Object
  extended by megamek.client.ui.AWT.boardview3d.HoverInfo
All Implemented Interfaces:
IDisplayable

 class HoverInfo
extends java.lang.Object
implements IDisplayable


Field Summary
(package private)  Coords coords
           
(package private)  java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.String>> destinations
           
(package private)  Entity entity
           
(package private)  Mounted equipment
           
(package private)  IGame game
           
(package private)  Player localPlayer
           
(package private)  Coords los
           
(package private)  java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.String>> sources
           
 
Constructor Summary
HoverInfo(IGame g, BoardView3D bv)
           
 
Method Summary
 void add(AttackAction aa)
           
 void clear()
           
 void draw(java.awt.Graphics g, java.awt.Rectangle rect)
          Draw this IDisplayable
(package private)  Coords getLOS()
           
 boolean isBeingDragged()
           
 boolean isDragged(java.awt.Point p, java.awt.Dimension size)
           
 boolean isHit(java.awt.Point p, java.awt.Dimension size)
           
 boolean isMouseOver(java.awt.Point p, java.awt.Dimension size)
           
 boolean isReleased()
           
 boolean isSliding()
           
 void remove(Entity entity)
           
 void setIdleTime(long timeIdle, boolean add)
           
(package private)  void setLOS(Coords c1)
           
(package private)  void setPosition(Coords c)
           
(package private)  void setSelected(Entity en, Mounted eq, Player pl)
           
 boolean slide()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

game

IGame game

entity

Entity entity

equipment

Mounted equipment

localPlayer

Player localPlayer

coords

Coords coords

los

Coords los

sources

java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.String>> sources

destinations

java.util.HashMap<java.lang.Integer,java.util.Vector<java.lang.String>> destinations
Constructor Detail

HoverInfo

public HoverInfo(IGame g,
                 BoardView3D bv)
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.awt.Rectangle rect)
Description copied from interface: IDisplayable
Draw this IDisplayable

Specified by:
draw in interface IDisplayable
Parameters:
g - - the Graphics to draw on

setPosition

void setPosition(Coords c)

setLOS

void setLOS(Coords c1)

getLOS

Coords getLOS()

setSelected

void setSelected(Entity en,
                 Mounted eq,
                 Player pl)

add

public void add(AttackAction aa)

remove

public void remove(Entity entity)

clear

public void clear()

update

public void update()

setIdleTime

public void setIdleTime(long timeIdle,
                        boolean add)
Specified by:
setIdleTime in interface IDisplayable

isHit

public boolean isHit(java.awt.Point p,
                     java.awt.Dimension size)
Specified by:
isHit in interface IDisplayable

isMouseOver

public boolean isMouseOver(java.awt.Point p,
                           java.awt.Dimension size)
Specified by:
isMouseOver in interface IDisplayable

isSliding

public boolean isSliding()
Specified by:
isSliding in interface IDisplayable

slide

public boolean slide()
Specified by:
slide in interface IDisplayable

isDragged

public boolean isDragged(java.awt.Point p,
                         java.awt.Dimension size)
Specified by:
isDragged in interface IDisplayable

isBeingDragged

public boolean isBeingDragged()
Specified by:
isBeingDragged in interface IDisplayable

isReleased

public boolean isReleased()
Specified by:
isReleased in interface IDisplayable