moagg.game
Class MultiPlayerClientGameObject

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

public class MultiPlayerClientGameObject
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
MultiPlayerClientGameObject(com.golden.gamedev.GameEngine parent)
           
 
Method Summary
protected  Ship createPlayer()
           
 void finish()
           
 GameControl getGameControl()
           
 Level getLevel()
           
 java.io.IOException getNetworkException()
           
 com.golden.gamedev.object.SpriteGroup getObjectsSpriteGroup()
           
 com.golden.gamedev.object.SpriteGroup getParticlesSpriteGroup()
           
 Ship getPlayer()
           
protected  Ship getPlayerByNetworkId(short id)
           
 com.golden.gamedev.object.SpriteGroup getPlayersSpriteGroup()
           
 com.golden.gamedev.object.SpriteGroup getProjectilesSpriteGroup()
           
protected  void initBackground()
           
protected  void initPanel()
           
 void initResources()
           
protected  void loadLevel(java.lang.String mission, java.lang.String level)
           
 void render(java.awt.Graphics2D g)
           
 void renderPreview(java.awt.Graphics2D g)
           
protected  void sendLoginPacket()
           
 void setBaseClient(com.golden.gamedev.engine.BaseClient bsClient)
           
 void setLevel(Level level)
           
 void setPlayer(Ship player)
           
 void setServer(MultiPlayerServerGameObject server)
           
 void update(long elapsedTime)
           
protected  void updateKeyboard()
           
protected  void updateNetwork(long elapsedTime)
           
 
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

MultiPlayerClientGameObject

public MultiPlayerClientGameObject(com.golden.gamedev.GameEngine parent)
Method Detail

setBaseClient

public void setBaseClient(com.golden.gamedev.engine.BaseClient bsClient)

setLevel

public void setLevel(Level level)

getLevel

public Level getLevel()

setServer

public void setServer(MultiPlayerServerGameObject server)

setPlayer

public void setPlayer(Ship player)

getPlayer

public Ship getPlayer()

getPlayerByNetworkId

protected Ship getPlayerByNetworkId(short id)

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()

getPlayersSpriteGroup

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

getNetworkException

public java.io.IOException getNetworkException()

initResources

public void initResources()
Specified by:
initResources in class com.golden.gamedev.GameObject

createPlayer

protected Ship createPlayer()

initBackground

protected void initBackground()

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

updateNetwork

protected void updateNetwork(long elapsedTime)
                      throws java.io.IOException
Throws:
java.io.IOException

sendLoginPacket

protected void sendLoginPacket()
                        throws java.io.IOException
Throws:
java.io.IOException

loadLevel

protected void loadLevel(java.lang.String mission,
                         java.lang.String level)

updateKeyboard

protected void updateKeyboard()
                       throws java.io.IOException
Throws:
java.io.IOException

finish

public void finish()
Overrides:
finish in class com.golden.gamedev.GameObject


Copyright © 2008. All Rights Reserved.