moagg.game.control
Class SinglePlayerGameControlImpl
java.lang.Object
moagg.game.control.AbstractGameControlImpl
moagg.game.control.SinglePlayerGameControlImpl
- All Implemented Interfaces:
- GameControl, InternalGameControl
public class SinglePlayerGameControlImpl
- extends AbstractGameControlImpl
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 |
SinglePlayerGameControlImpl
public SinglePlayerGameControlImpl(LevelGameObject levelGame)
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.