moagg.game.control
Class ScriptFunctionName

java.lang.Object
  extended by moagg.game.control.ScriptFunctionName

public class ScriptFunctionName
extends java.lang.Object

This class holds all script function names, that a level script may implement.


Field Summary
static java.lang.String INIT
          Called after the level is loaded and before the game continues to perform any level-internal initializations.
static java.lang.String ON_CRATE_PICKUP
          Called if the player picked up a crate.
static java.lang.String ON_DESTROYED
          Called if an object was destroyed.
static java.lang.String ON_LANDED
          Called if the player landed on a platform.
static java.lang.String ON_OBJECTIVE_REACHED
          Called if all objectives of the level are reached.
static java.lang.String ON_SWITCH
          Called if a switch was hit by a projectile.
static java.lang.String ON_TAKE_OFF
          Called if the player takes of from a platform.
static java.lang.String UPDATE
          Called for every frame.
 
Constructor Summary
ScriptFunctionName()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT

public static final java.lang.String INIT
Called after the level is loaded and before the game continues to perform any level-internal initializations.

See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
Called for every frame. As argument, the elapsed time will be passed.

See Also:
Constant Field Values

ON_DESTROYED

public static final java.lang.String ON_DESTROYED
Called if an object was destroyed. As argument, the object will be passed.

See Also:
Constant Field Values

ON_LANDED

public static final java.lang.String ON_LANDED
Called if the player landed on a platform. As argument, the platform object will be passed.

See Also:
Constant Field Values

ON_TAKE_OFF

public static final java.lang.String ON_TAKE_OFF
Called if the player takes of from a platform. As argument, the platform object will be passed.

See Also:
Constant Field Values

ON_CRATE_PICKUP

public static final java.lang.String ON_CRATE_PICKUP
Called if the player picked up a crate. As argument, the picked up crate object will be passed.

See Also:
Constant Field Values

ON_SWITCH

public static final java.lang.String ON_SWITCH
Called if a switch was hit by a projectile. As argument, the switch object will be passed.

See Also:
Constant Field Values

ON_OBJECTIVE_REACHED

public static final java.lang.String ON_OBJECTIVE_REACHED
Called if all objectives of the level are reached. The level script may then finish the level or add further objectives.

See Also:
Constant Field Values
Constructor Detail

ScriptFunctionName

public ScriptFunctionName()


Copyright © 2008. All Rights Reserved.