moagg.game
Class LevelGameObject

java.lang.Object
  extended by com.golden.gamedev.GameObject
      extended by moagg.game.LevelGameObject

public class LevelGameObject
extends com.golden.gamedev.GameObject


Field Summary
 
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)
           
 
Method Summary
 void continueWithNextLevel()
           
 void finish()
           
 GameControl getGameControl()
           
 Ship getGhost()
           
 Ghost getGhostPlayback()
           
 Ghost getGhostRecord()
           
 com.golden.gamedev.object.SpriteGroup getGhostsSpriteGroup()
           
 Level getLevel()
           
 com.golden.gamedev.object.SpriteGroup getObjectsSpriteGroup()
           
 com.golden.gamedev.object.SpriteGroup getParticlesSpriteGroup()
           
 Ship getPlayer()
           
 com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()
           
 com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()
           
 Score getScore()
           
protected  void initBackground()
           
protected  void initCollisionGroups()
           
 void initForPreview()
           
protected  void initGhost(int shipType)
           
protected  void initPanel()
           
protected  Ship initPlayer(Ship player)
           
protected  void initPlayer2(Ship player)
          This method initializes the player's ship for the initial (or a further) life.
 void initResources()
           
 boolean isContinueWithNextLevel()
           
 void render(java.awt.Graphics2D g)
           
 void renderPreview(java.awt.Graphics2D g)
           
protected  void resetPlayer(Ship player)
          This method resets any upgrades the player's ship might have.
 void setBestScore(Score bestScore)
           
 void setGhostPlayback(Ghost ghostPlayback)
           
 void setGhostRecord(Ghost recordGhost)
           
 void setPlayer(Ship player)
           
 void update(long elapsedTime)
           
protected  void updateKeyboard()
           
 
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
 

Constructor Detail

LevelGameObject

public LevelGameObject(com.golden.gamedev.GameEngine parent,
                       java.lang.String mission,
                       java.lang.String missionLevel)
Method Detail

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.