Class ViewPortCursorBaseEvent
- java.lang.Object
-
- de.extio.spacecraft.shared.model.client.event.Event
-
- de.extio.spacecraft.shared.model.client.event.ViewPortEvent
-
- de.extio.spacecraft.shared.model.client.event.ViewPortCursorBaseEvent
-
- All Implemented Interfaces:
HasPosition2
- Direct Known Subclasses:
ViewPortTileClickPressEvent
,ViewPortTileClickReleaseEvent
,ViewPortTileMouseMoveEvent
public abstract class ViewPortCursorBaseEvent extends ViewPortEvent implements HasPosition2
-
-
Field Summary
Fields Modifier and Type Field Description protected CoordI2
absolutePos
protected long
clickSession
protected List<CompositeAndEntityId>
entitiesUnderCursor
protected int
modifiers
protected CoordI2
worldPos
protected CoordI2
worldPosSubOffset
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewPortCursorBaseEvent(CoordI2 absolutePos, CoordI2 worldPos, CoordI2 worldPosSubOffset, List<CompositeAndEntityId> entitiesUnderCursor, long clickSession, int modifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordI2
getAbsolutePos()
long
getClickSession()
List<CompositeAndEntityId>
getEntitiesUnderCursor()
int
getModifiers()
CoordI2
getPosition()
CoordI2
getWorldPosSubOffset()
String
toString()
-
Methods inherited from class de.extio.spacecraft.shared.model.client.event.Event
getFrameCur, getFrameTTL, isExlusive, isInGroup, isPriority, setFrameCur
-
-
-
-
Field Detail
-
absolutePos
protected final CoordI2 absolutePos
-
worldPos
protected final CoordI2 worldPos
-
worldPosSubOffset
protected final CoordI2 worldPosSubOffset
-
entitiesUnderCursor
protected final List<CompositeAndEntityId> entitiesUnderCursor
-
clickSession
protected final long clickSession
-
modifiers
protected final int modifiers
-
-
Constructor Detail
-
ViewPortCursorBaseEvent
protected ViewPortCursorBaseEvent(CoordI2 absolutePos, CoordI2 worldPos, CoordI2 worldPosSubOffset, List<CompositeAndEntityId> entitiesUnderCursor, long clickSession, int modifiers)
-
-
Method Detail
-
getPosition
public CoordI2 getPosition()
- Specified by:
getPosition
in interfaceHasPosition2
-
getWorldPosSubOffset
public CoordI2 getWorldPosSubOffset()
-
getAbsolutePos
public CoordI2 getAbsolutePos()
-
getEntitiesUnderCursor
public List<CompositeAndEntityId> getEntitiesUnderCursor()
-
getModifiers
public int getModifiers()
-
getClickSession
public long getClickSession()
-
-