moagg.game.control
Interface InternalGameControl

All Superinterfaces:
GameControl
All Known Implementing Classes:
AbstractGameControlImpl, MultiPlayerClientGameControlImpl, MultiPlayerServerGameControlImpl, SinglePlayerGameControlImpl

public interface InternalGameControl
extends GameControl

Extended game control interface for internal use.


Method Summary
 void addParticle(Particle particle)
           
 void addProjectile(ShootableObject shootable)
           
 void callScript(java.lang.String name, java.lang.Object... args)
           
 com.golden.gamedev.object.SpriteGroup getGhostsSpriteGroup()
           
 Level getLevel()
           
 java.util.List<MoaggGameObject> getObjects()
           
 java.util.List<Platform> getPlatforms()
           
 com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()
           
 com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()
           
 boolean isBackgroundBetween(MoaggGameObject o1, MoaggGameObject o2)
           
 boolean isPlatformCollisionActive(Ship player)
          Called by the collision handlers to determine if a detected Ship/Platform collision has to be handled.
 void onObjectObjectCollision(MoaggGameObject object1, MoaggGameObject object2)
           
 void onObjectPlaygroundCollision(MoaggGameObject object)
           
 void resetPlatformCollisionTimer(Ship player)
          Called by the LandingHandler if a player takes off from a platform.
 void update(long elapsedTime)
           
 
Methods inherited from interface moagg.game.control.GameControl
addFriction, addGravity, addObjective, addStreamSpeed, finish, getFrictionFor, getGravityFor, getObjectById, getPlayer, getStreamSpeedFor, setPopUpText, setPopUpText, setStatusText
 

Method Detail

update

void update(long elapsedTime)

addParticle

void addParticle(Particle particle)

addProjectile

void addProjectile(ShootableObject shootable)

getLevel

Level getLevel()

getProjectilesSpriteGroup

com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()

getGhostsSpriteGroup

com.golden.gamedev.object.SpriteGroup getGhostsSpriteGroup()

getPlayersSpriteGroup

com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()

getPlatforms

java.util.List<Platform> getPlatforms()

getObjects

java.util.List<MoaggGameObject> getObjects()

isBackgroundBetween

boolean isBackgroundBetween(MoaggGameObject o1,
                            MoaggGameObject o2)
Returns:
true, if there's a clear line between the two game objects, else false.

resetPlatformCollisionTimer

void resetPlatformCollisionTimer(Ship player)
Called by the LandingHandler if a player takes off from a platform.

Parameters:
player - The player who took of a platform.

isPlatformCollisionActive

boolean isPlatformCollisionActive(Ship player)
Called by the collision handlers to determine if a detected Ship/Platform collision has to be handled.

Parameters:
player - The player who collided with a Platform.
Returns:
true if the collision shall be handled, false if it shall be ignored.

onObjectPlaygroundCollision

void onObjectPlaygroundCollision(MoaggGameObject object)

onObjectObjectCollision

void onObjectObjectCollision(MoaggGameObject object1,
                             MoaggGameObject object2)

callScript

void callScript(java.lang.String name,
                java.lang.Object... args)


Copyright © 2008. All Rights Reserved.