edu.gatech.cs2335.lemmings.engine
Class MultiplayerGameplayState

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.engine.AbstractGameState
      extended byedu.gatech.cs2335.lemmings.engine.GamePlayState
          extended byedu.gatech.cs2335.lemmings.engine.MultiplayerGameplayState
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MultiplayerGameplayState
extends GamePlayState

The mutiplayer game state, where the actual game is displayed and played. Koala Update - fixed

Version:
1.0
Author:
Vladimir Urazov

Field Summary
 
Fields inherited from class edu.gatech.cs2335.lemmings.engine.GamePlayState
UPDATE_DELAY, UPDATE_FREQUENCY
 
Constructor Summary
MultiplayerGameplayState(Level l)
          constructor
 
Method Summary
 void endLevel()
          Ends the level and goes on to the next state.
 Level getOtherPlayerLevel()
          Accessor for otherPlayerlevel
 void otherPlayerEnded()
          Konchil on.
 void receiveMessage(AbstractMessage msg)
          Updates both players levels based on msg data
 void requestNuke()
          Determines if the little guys should be nuked and nukes.
protected  void specialDecreaseHandle()
          Whatever else needs to be done for decrease.
protected  void specialIncreaseHandle()
          Whatever else needs to be done for increase.
protected  void specialInitialize()
          Describe specialInitialize method here.
protected  void specialNukeHandle()
          Whatever else needs to be done for nuke.
protected  void specialPauseHandle()
          Whatever else needs to be done for pause.
protected  void specialSpeedupHandle()
          Whatever else needs to be done for speedup.
protected  void specialUpdate()
          Describe specialUpdate method here.
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.GamePlayState
actionPerformed, cleanUp, getGamePlayPanel, getGameSpeed, getLemmingFlow, getLevel, getPauseButton, handleDecreaseButton, handleIncreaseButton, handleNukeButton, handlePauseButton, handleSpeedupButton, initialize, isPauseSelected, setGameSpeed, singleDecreaseButtonHandle, singleIncreaseButtonHandle, singleNukeButtonHandle, singlePauseButtonHandle, singleSpeedupButtonHandle, updateStuff
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.AbstractGameState
getUI, setUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplayerGameplayState

public MultiplayerGameplayState(Level l)
constructor

Parameters:
l - level
Method Detail

specialInitialize

protected void specialInitialize()
Describe specialInitialize method here.

Overrides:
specialInitialize in class GamePlayState

specialPauseHandle

protected void specialPauseHandle()
Whatever else needs to be done for pause.

Overrides:
specialPauseHandle in class GamePlayState

specialSpeedupHandle

protected void specialSpeedupHandle()
Whatever else needs to be done for speedup.

Overrides:
specialSpeedupHandle in class GamePlayState

specialNukeHandle

protected void specialNukeHandle()
Whatever else needs to be done for nuke.

Overrides:
specialNukeHandle in class GamePlayState

specialIncreaseHandle

protected void specialIncreaseHandle()
Whatever else needs to be done for increase.

Overrides:
specialIncreaseHandle in class GamePlayState

specialDecreaseHandle

protected void specialDecreaseHandle()
Whatever else needs to be done for decrease.

Overrides:
specialDecreaseHandle in class GamePlayState

specialUpdate

protected void specialUpdate()
Describe specialUpdate method here.

Overrides:
specialUpdate in class GamePlayState

receiveMessage

public void receiveMessage(AbstractMessage msg)
Updates both players levels based on msg data

Parameters:
msg - , network message holding game state updates

endLevel

public void endLevel()
Ends the level and goes on to the next state.

Overrides:
endLevel in class GamePlayState

otherPlayerEnded

public void otherPlayerEnded()
Konchil on.


getOtherPlayerLevel

public Level getOtherPlayerLevel()
Accessor for otherPlayerlevel

Returns:
Level , Level of remote player

requestNuke

public void requestNuke()
Determines if the little guys should be nuked and nukes.