moagg.game
Class LevelGameObject
java.lang.Object
com.golden.gamedev.GameObject
moagg.game.LevelGameObject
public class LevelGameObject
- extends com.golden.gamedev.GameObject
Fields inherited from class com.golden.gamedev.GameObject |
bsGraphics, bsInput, bsIO, bsLoader, bsMusic, bsSound, bsTimer, fontManager, parent |
Constructor Summary |
LevelGameObject(com.golden.gamedev.GameEngine parent,
java.lang.String mission,
java.lang.String missionLevel)
|
Methods inherited from class com.golden.gamedev.GameObject |
checkPosMouse, checkPosMouse, click, drawFPS, getCurrentFPS, getFPS, getHeight, getImage, getImage, getImages, getImages, getImages, getImages, getImages, getImages, getMouseX, getMouseY, getRandom, getWidth, hideCursor, keyDown, keyPressed, playMusic, playSound, rightClick, setFPS, setMaskColor, showCursor, start, takeScreenShot, takeScreenShot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LevelGameObject
public LevelGameObject(com.golden.gamedev.GameEngine parent,
java.lang.String mission,
java.lang.String missionLevel)
getLevel
public Level getLevel()
setPlayer
public void setPlayer(Ship player)
getPlayer
public Ship getPlayer()
getGhost
public Ship getGhost()
setGhostPlayback
public void setGhostPlayback(Ghost ghostPlayback)
getGhostPlayback
public Ghost getGhostPlayback()
initGhost
protected void initGhost(int shipType)
setGhostRecord
public void setGhostRecord(Ghost recordGhost)
getGhostRecord
public Ghost getGhostRecord()
initForPreview
public void initForPreview()
initBackground
protected void initBackground()
initPlayer
protected Ship initPlayer(Ship player)
resetPlayer
protected void resetPlayer(Ship player)
- This method resets any upgrades the player's ship might have.
initPlayer2
protected void initPlayer2(Ship player)
- This method initializes the player's ship
for the initial (or a further) life.
getGameControl
public GameControl getGameControl()
getParticlesSpriteGroup
public com.golden.gamedev.object.SpriteGroup getParticlesSpriteGroup()
getProjectilesSpriteGroup
public com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()
getObjectsSpriteGroup
public com.golden.gamedev.object.SpriteGroup getObjectsSpriteGroup()
getGhostsSpriteGroup
public com.golden.gamedev.object.SpriteGroup getGhostsSpriteGroup()
getPlayersSpriteGroup
public com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()
setBestScore
public void setBestScore(Score bestScore)
initResources
public void initResources()
- Specified by:
initResources
in class com.golden.gamedev.GameObject
initCollisionGroups
protected void initCollisionGroups()
initPanel
protected void initPanel()
render
public void render(java.awt.Graphics2D g)
- Specified by:
render
in class com.golden.gamedev.GameObject
renderPreview
public void renderPreview(java.awt.Graphics2D g)
update
public void update(long elapsedTime)
- Specified by:
update
in class com.golden.gamedev.GameObject
updateKeyboard
protected void updateKeyboard()
finish
public void finish()
- Overrides:
finish
in class com.golden.gamedev.GameObject
continueWithNextLevel
public void continueWithNextLevel()
isContinueWithNextLevel
public boolean isContinueWithNextLevel()
getScore
public Score getScore()
Copyright © 2008. All Rights Reserved.