Class ChoppingBoardHoverComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.rendering.RenderComponent
com.csse3200.game.components.station.StationHoverComponent
com.csse3200.game.components.station.ChoppingBoardHoverComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,Renderable,Comparable<Renderable>
A component used to display the inventory of a chopping board
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 TypeMethodDescriptionvoiddrawToolTips(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, updateDisplayMethods inherited from class com.csse3200.game.rendering.RenderComponent
compareTo, getZIndex, renderMethods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
ChoppingBoardHoverComponent
public ChoppingBoardHoverComponent()
-
-
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:
drawToolTipsin classStationHoverComponent- Parameters:
batch- The SpriteBatch used for drawing
-