Class Weather

  • All Implemented Interfaces:
    CollisionCallBack

    public class Weather
    extends Obstacle
    Added for Assessment 2 in order to meet weather condition requirements
    • Constructor Detail

      • Weather

        public Weather​(float damage,
                       float hitRate)
        Creates a Weather Object
        Parameters:
        damage - The damage dealt to an object which collides with this weather effect
        hitRate - The rate at which damage is dealt
    • Method Detail

      • update

        public void update()
        Called once every frame
        Overrides:
        update in class Obstacle