moagg.game.control.handler
Class LandingHandler

java.lang.Object
  extended by moagg.game.control.handler.LandingHandler
All Implemented Interfaces:
GameControlHandler

public class LandingHandler
extends java.lang.Object
implements GameControlHandler

Takes care of checking if the ship has landed on a platform.


Constructor Summary
LandingHandler()
           
 
Method Summary
protected  void checkShipLanded(Ship player, InternalGameControl gameControl)
           
protected  void checkShipOnFuelPlatform(Ship player, long elapsedTime)
           
protected  void checkShipTakeoff(Ship player, InternalGameControl gameControl)
           
protected  void landPlayerOnPlatform(Ship player, Platform platform)
           
 void update(InternalGameControl gameControl, long elapsedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LandingHandler

public LandingHandler()
Method Detail

update

public void update(InternalGameControl gameControl,
                   long elapsedTime)
Specified by:
update in interface GameControlHandler

checkShipLanded

protected void checkShipLanded(Ship player,
                               InternalGameControl gameControl)

checkShipTakeoff

protected void checkShipTakeoff(Ship player,
                                InternalGameControl gameControl)

checkShipOnFuelPlatform

protected void checkShipOnFuelPlatform(Ship player,
                                       long elapsedTime)

landPlayerOnPlatform

protected void landPlayerOnPlatform(Ship player,
                                    Platform platform)


Copyright © 2008. All Rights Reserved.