Class FlyOverArea2DView
java.lang.Object
games.stendhal.client.gui.j2d.entity.Entity2DView<T>
games.stendhal.client.gui.j2d.entity.FlyOverArea2DView
- All Implemented Interfaces:
Inspectable
,EntityView<IEntity>
The 2D view of a fly over area.
-
Field Summary
Fields inherited from class games.stendhal.client.gui.j2d.entity.Entity2DView
animatedChanged, entity, representationChanged, visibilityChanged
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildRepresentation(IEntity entity)
Rebuild the representation using the base entity.void
draw(Graphics2D g2d)
Draw the entity (NOT!).Use normal cursor for these areas.int
Drawn just under walk blocker.boolean
is this entity interactive so that the player can click or move it?Methods inherited from class games.stendhal.client.gui.j2d.entity.Entity2DView
applyChanges, attachSprite, buildActions, calculateOffset, detachSprite, draw, drawEntity, drawTop, drawTop, getActions, getArea, getClassResourcePath, getComposite, getDrawingArea, getEntity, getHeight, getSprite, getVisibility, getWidth, getX, getXOffset, getY, getYOffset, initialize, isAnimating, isContained, isMovable, isReleased, onAction, onAction, onHarmlessAction, release, reorderActions, setContained, setInspector, setSprite, setVisibleScreenArea, translate, update
-
Constructor Details
-
FlyOverArea2DView
public FlyOverArea2DView()
-
-
Method Details
-
getZIndex
public int getZIndex()Drawn just under walk blocker.- Specified by:
getZIndex
in interfaceEntityView<IEntity>
- Returns:
- the drawing index
-
getCursor
Use normal cursor for these areas.- Specified by:
getCursor
in interfaceEntityView<IEntity>
- Returns:
- StendhalCursor
-
buildRepresentation
Description copied from class:Entity2DView
Rebuild the representation using the base entity.- Overrides:
buildRepresentation
in classEntity2DView<T extends IEntity>
- Parameters:
entity
- the eEntity to build the representation for
-
draw
Draw the entity (NOT!).- Specified by:
draw
in interfaceEntityView<T extends IEntity>
- Overrides:
draw
in classEntity2DView<T extends IEntity>
- Parameters:
g2d
- The graphics to drawn on.
-
isInteractive
public boolean isInteractive()Description copied from class:Entity2DView
is this entity interactive so that the player can click or move it?- Specified by:
isInteractive
in interfaceEntityView<T extends IEntity>
- Overrides:
isInteractive
in classEntity2DView<T extends IEntity>
- Returns:
- true if the player can interact with it, false otherwise.
-