Class MixingBenchHoverComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.rendering.RenderComponent
com.csse3200.game.components.station.StationHoverComponent
com.csse3200.game.components.station.MixingBenchHoverComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Renderable
,Comparable<Renderable>
A component used to display the inventory of a mixing bench
station, as well as interaction key tooltips for the station.
-
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
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, draw, 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
-
MixingBenchHoverComponent
public MixingBenchHoverComponent()
-
-
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
-