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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildRepresentation(IEntity entity) Rebuild the representation using the base entity.voiddraw(Graphics2D g2d) Draw the entity (NOT!).Use normal cursor for these areas.intDrawn just under walk blocker.booleanis 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:
getZIndexin interfaceEntityView<IEntity>- Returns:
- the drawing index
-
getCursor
Use normal cursor for these areas.- Specified by:
getCursorin interfaceEntityView<IEntity>- Returns:
- StendhalCursor
-
buildRepresentation
Description copied from class:Entity2DViewRebuild the representation using the base entity.- Overrides:
buildRepresentationin classEntity2DView<T extends IEntity>- Parameters:
entity- the eEntity to build the representation for
-
draw
Draw the entity (NOT!).- Specified by:
drawin interfaceEntityView<T extends IEntity>- Overrides:
drawin classEntity2DView<T extends IEntity>- Parameters:
g2d- The graphics to drawn on.
-
isInteractive
public boolean isInteractive()Description copied from class:Entity2DViewis this entity interactive so that the player can click or move it?- Specified by:
isInteractivein interfaceEntityView<T extends IEntity>- Overrides:
isInteractivein classEntity2DView<T extends IEntity>- Returns:
- true if the player can interact with it, false otherwise.
-