games.RobotUnicornAttack.items
Class RobotUnicorn

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

public class RobotUnicorn
extends GameItem
implements TimeListener, Collidable<Platform>, UnicornActionListener

See Also:
Serialized Form

Constructor Summary
RobotUnicorn(Texture t)
           
 
Method Summary
 void collide(Platform otherObject)
          This method is called whenever an object of the specified type has collided with this object.
 void dash(DashEvent e)
           
 void fall(StopJumpEvent e)
           
 void jump(StartJumpEvent e)
           
 void timeUpdated(TimeUpdateEvent t)
          Receives an TimeUpdateEvent for the implementing class to process.
 
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

RobotUnicorn

public RobotUnicorn(Texture t)
Method Detail

timeUpdated

public void timeUpdated(TimeUpdateEvent t)
Description copied from interface: TimeListener
Receives an TimeUpdateEvent for the implementing class to process.

Specified by:
timeUpdated in interface TimeListener
Parameters:
t - is the TimeUpdateEvent

collide

public void collide(Platform 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<Platform>
Parameters:
otherObject - that has collided with this object

dash

public void dash(DashEvent e)
Specified by:
dash in interface UnicornActionListener

jump

public void jump(StartJumpEvent e)
Specified by:
jump in interface UnicornActionListener

fall

public void fall(StopJumpEvent e)
Specified by:
fall in interface UnicornActionListener