Package com.csse3200.game.rendering
Class TiledGroundFloorComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.rendering.RenderComponent
com.csse3200.game.rendering.TiledGroundFloorComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Renderable
,Comparable<Renderable>
A render component for ground floors that extend to the bottom of the screen.
Similar to TiledFloorComponent but without bottom edges.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTiledGroundFloorComponent
(com.badlogic.gdx.graphics.g2d.TextureRegion topLeftCorner, com.badlogic.gdx.graphics.g2d.TextureRegion topRightCorner, com.badlogic.gdx.graphics.g2d.TextureRegion topEdge, com.badlogic.gdx.graphics.g2d.TextureRegion leftEdge, com.badlogic.gdx.graphics.g2d.TextureRegion rightEdge, com.badlogic.gdx.graphics.g2d.TextureRegion middleTile) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draw the renderable.Methods inherited from class com.csse3200.game.rendering.RenderComponent
compareTo, create, dispose, getLayer, getZIndex, render, setLayer
Methods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
TiledGroundFloorComponent
public TiledGroundFloorComponent(com.badlogic.gdx.graphics.g2d.TextureRegion topLeftCorner, com.badlogic.gdx.graphics.g2d.TextureRegion topRightCorner, com.badlogic.gdx.graphics.g2d.TextureRegion topEdge, com.badlogic.gdx.graphics.g2d.TextureRegion leftEdge, com.badlogic.gdx.graphics.g2d.TextureRegion rightEdge, com.badlogic.gdx.graphics.g2d.TextureRegion middleTile)
-
-
Method Details
-
draw
protected 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.- Specified by:
draw
in classRenderComponent
- Parameters:
batch
- Batch to render to.
-