moagg.game.control
Class SinglePlayerGameControlImpl

java.lang.Object
  extended by moagg.game.control.AbstractGameControlImpl
      extended by moagg.game.control.SinglePlayerGameControlImpl
All Implemented Interfaces:
GameControl, InternalGameControl

public class SinglePlayerGameControlImpl
extends AbstractGameControlImpl


Field Summary
 
Fields inherited from class moagg.game.control.AbstractGameControlImpl
collisionHandler, level, log, platformCollisionTimers
 
Constructor Summary
SinglePlayerGameControlImpl(LevelGameObject levelGame)
           
 
Method Summary
 void addCrateToUnload(Crate crate)
           
 void addObjective(Objective objective)
           
 void addParticle(Particle particle)
           
 void addProjectile(ShootableObject shootable)
           
 void clearPopUpText()
           
 Crate getCrateToUnload()
           
 Ship getGhost()
           
 Ghost getGhostPlayback()
           
 Ghost getGhostRecord()
           
 com.golden.gamedev.object.SpriteGroup getGhostsSpriteGroup()
           
 Objectives getObjectives()
           
 Ship getPlayer()
           
 com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()
           
 java.lang.String getPopUpText()
           
 com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()
           
 Score getScore()
           
 java.lang.String getStatusText()
           
 boolean hasCratesToUnload()
           
 void setPopUpText(java.lang.String key)
          Stores a text for being displayed in a pop-up window.
 void setPopUpText(java.lang.String key, java.lang.Object... args)
          Stores a text for being displayed in a pop-up window.
 void setStatusText(java.lang.String text)
           
 void update(long elapsedTime)
           
 
Methods inherited from class moagg.game.control.AbstractGameControlImpl
addFriction, addGravity, addStreamSpeed, callScript, cleanup, finish, getFrictionFor, getGravityFor, getLevel, getObjectById, getObjects, getPlatformCollisionTimer, getPlatforms, getStreamSpeedFor, initScripting, isBackgroundBetween, isFinished, isPlatformCollisionActive, onObjectObjectCollision, onObjectPlaygroundCollision, resetPlatformCollisionTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePlayerGameControlImpl

public SinglePlayerGameControlImpl(LevelGameObject levelGame)
Method Detail

update

public void update(long elapsedTime)
Specified by:
update in interface InternalGameControl
Overrides:
update in class AbstractGameControlImpl

addParticle

public void addParticle(Particle particle)

addProjectile

public void addProjectile(ShootableObject shootable)

getPlayer

public Ship getPlayer()
Returns:
The player's ship.

getGhost

public Ship getGhost()

getProjectilesSpriteGroup

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

getGhostsSpriteGroup

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

getPlayersSpriteGroup

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

hasCratesToUnload

public boolean hasCratesToUnload()

getCrateToUnload

public Crate getCrateToUnload()

addCrateToUnload

public void addCrateToUnload(Crate crate)

getObjectives

public Objectives getObjectives()

addObjective

public void addObjective(Objective objective)
Parameters:
objective - The objective to add.

setStatusText

public void setStatusText(java.lang.String text)
Parameters:
text - The text to display in the status line.

getStatusText

public java.lang.String getStatusText()

clearPopUpText

public void clearPopUpText()

setPopUpText

public void setPopUpText(java.lang.String key)
Description copied from interface: GameControl
Stores a text for being displayed in a pop-up window.

Parameters:
key - The key to use for the properties lookup.

setPopUpText

public void setPopUpText(java.lang.String key,
                         java.lang.Object... args)
Description copied from interface: GameControl
Stores a text for being displayed in a pop-up window.

Parameters:
key - The key to use for the properties lookup.
args - Optional arguments to be filled into the text.

getPopUpText

public java.lang.String getPopUpText()

getScore

public Score getScore()

getGhostPlayback

public Ghost getGhostPlayback()

getGhostRecord

public Ghost getGhostRecord()


Copyright © 2008. All Rights Reserved.