Class BasketHoverComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.rendering.RenderComponent
com.csse3200.game.components.station.StationHoverComponent
com.csse3200.game.components.station.BasketHoverComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Renderable
,Comparable<Renderable>
A component used to display interaction key tooltips for
a basket station component.
-
Field Summary
Fields inherited from class com.csse3200.game.components.station.StationHoverComponent
chopKeyImage, combineKeyImage, cookKeyImage, currentItem, disposeKeyImage, hasItem, interactKeyImage, inventory, KEY_HEIGHT, KEY_WIDTH, placeKeyImage, position, rotateKeyImage, scale, showKeys, submitKeyImage, takeKeyImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draw the renderable.void
drawToolTips
(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draws the required key tooltips for the current interactions that can be done on this station.Methods inherited from class com.csse3200.game.components.station.StationHoverComponent
create, dispose, getLayer, setStage, updateDisplay
Methods inherited from class com.csse3200.game.rendering.RenderComponent
compareTo, getZIndex, render
Methods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
BasketHoverComponent
public BasketHoverComponent()
-
-
Method Details
-
drawToolTips
public void drawToolTips(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draws the required key tooltips for the current interactions that can be done on this station.- Specified by:
drawToolTips
in classStationHoverComponent
- Parameters:
batch
- The SpriteBatch used for drawing
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Description copied from class:RenderComponent
Draw the renderable. Should be called only by the renderer, not manually.- Overrides:
draw
in classStationHoverComponent
- Parameters:
batch
- Batch to render to.
-