Package com.dicycat.kroy.misc
Class WaterStream
- java.lang.Object
-
- com.dicycat.kroy.GameObject
-
- com.dicycat.kroy.misc.WaterStream
-
public class WaterStream extends GameObject
Sprite used to represent where the player is shooting- Author:
- IsaacAlbiston
-
-
Constructor Summary
Constructors Constructor Description WaterStream(com.badlogic.gdx.math.Vector2 spawnPos)
initialises the water stream at a given position
-
Method Summary
-
Methods inherited from class com.dicycat.kroy.GameObject
changePosition, die, getCentre, getHeight, getOriginX, getOriginY, getPosition, getRotation, getSprite, getTexture, getTextureHeight, getTextureWidth, getWidth, getX, getXScale, getY, getYScale, isDisplayable, isRemove, render, setPosition, setRemove, setRotation
-
-
-
-
Method Detail
-
setRange
public void setRange(float x)
Changes the length of the sprite to x- Parameters:
x
-
-
update
public void update()
Description copied from class:GameObject
Called every frame. Update the game object.- Specified by:
update
in classGameObject
-
-