Class FreezeUp


  • public class FreezeUp
    extends PowerUp
    • Constructor Summary

      Constructors 
      Constructor Description
      FreezeUp​(com.badlogic.gdx.math.Vector2 position)
      Class constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void render​(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer)
      Calls the superclass render method with the specified colour.
      void update​(Player player)
      Used to update the status of this powerup every frame.
      • Methods inherited from class com.badlogic.gdx.graphics.g2d.Sprite

        draw, draw, flip, getBoundingRectangle, getColor, getHeight, getOriginX, getOriginY, getRotation, getScaleX, getScaleY, getVertices, getWidth, getX, getY, rotate, rotate90, scale, scroll, set, setAlpha, setBounds, setCenter, setCenterX, setCenterY, setColor, setColor, setFlip, setOrigin, setOriginBasedPosition, setOriginCenter, setPackedColor, setPosition, setRegion, setRotation, setScale, setScale, setSize, setU, setU2, setV, setV2, setX, setY, translate, translateX, translateY
      • Methods inherited from class com.badlogic.gdx.graphics.g2d.TextureRegion

        getRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setTexture, split, split
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FreezeUp

        public FreezeUp​(com.badlogic.gdx.math.Vector2 position)
        Class constructor.
        Parameters:
        position - The initial position of this powerup.
    • Method Detail

      • update

        public void update​(Player player)
        Used to update the status of this powerup every frame.
        Specified by:
        update in class PowerUp
        Parameters:
        player - The Player whose position will be used for collision and who the powerup will be applied to.
      • render

        public void render​(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer)
        Calls the superclass render method with the specified colour.
        Overrides:
        render in class PowerUp
        Parameters:
        shapeRenderer - The ShapeRenderer used to draw the powerup.