games.pong.items
Class ReducePaddlePowerup

java.lang.Object
  extended by vooga.gameEngine.game.GameRelatedObject
      extended by vooga.gameEngine.item.GameItem
          extended by vooga.physicsEngine.PhysicalItem
              extended by games.pong.items.PongItem
                  extended by games.pong.items.Powerup
                      extended by games.pong.items.ReducePaddlePowerup
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Renderable>, Collidable<Ball>, Renderable, Tangible

public class ReducePaddlePowerup
extends Powerup

A Powerup which will reduce the size of the Paddle which did not hit the Ball towards the Powerup

Author:
Ben Getson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class vooga.physicsEngine.PhysicalItem
parameters
 
Constructor Summary
ReducePaddlePowerup(double dimension, Pong game)
           
 
Method Summary
 void applyEffect()
          Reduce the size of the Paddle which did not hit the Ball by a certain percentage
 
Methods inherited from class games.pong.items.Powerup
collide, getHittingPaddle, getOpponentPaddle
 
Methods inherited from class games.pong.items.PongItem
changeImage, reduceSize, resetSize
 
Methods inherited from class vooga.physicsEngine.PhysicalItem
applyAngularImpulse, applyImpulse, getPhysicsOn, setConstantForce, setPhysicsOn, setPosition, setPosition
 
Methods inherited from class vooga.gameEngine.item.GameItem
compareTo, getPosition, getRotation, getShape, getSize, getTexture, isVisible, move, resize, rotate, setPosition, setRotation, setSize, setVisibility
 
Methods inherited from class vooga.gameEngine.game.GameRelatedObject
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface vooga.gameEngine.item.Renderable
getTexture, isVisible, setVisibility
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface vooga.gameEngine.item.Tangible
getPosition, getRotation, getShape, getSize, move, resize, rotate, setPosition, setRotation, setSize
 

Constructor Detail

ReducePaddlePowerup

public ReducePaddlePowerup(double dimension,
                           Pong game)
Method Detail

applyEffect

public void applyEffect()
Reduce the size of the Paddle which did not hit the Ball by a certain percentage

Specified by:
applyEffect in class Powerup