games.RobotUnicornAttack.items
Class Platform

java.lang.Object
  extended by vooga.gameEngine.game.GameRelatedObject
      extended by vooga.gameEngine.item.GameItem
          extended by games.RobotUnicornAttack.items.Platform
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Renderable>, Collidable<RobotUnicorn>, Renderable, Tangible

public class Platform
extends GameItem
implements Collidable<RobotUnicorn>

A platform for running and collidng within the game

Author:
gpw5
See Also:
Serialized Form

Constructor Summary
Platform(java.net.URL resource, Dimension dimension, Position position)
           
 
Method Summary
 void collide(RobotUnicorn otherObject)
          This method is called whenever an object of the specified type has collided with this object.
 
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

Platform

public Platform(java.net.URL resource,
                Dimension dimension,
                Position position)
Method Detail

collide

public void collide(RobotUnicorn otherObject)
Description copied from interface: Collidable
This method is called whenever an object of the specified type has collided with this object.

Specified by:
collide in interface Collidable<RobotUnicorn>
Parameters:
otherObject - that has collided with this object