C# Class PGCGame.Screens.Multiplayer.MPShipsScreen

Inheritance: PGCGame.CoreTypes.BaseScreen
ファイルを表示 Open project: GreatMindsRobotics/PGCGame Class Usage Examples

Public Methods

Method Description
InitScreen ( ScreenType screenName ) : void
MPShipsScreen ( SpriteBatch sb ) : System
Update ( GameTime game ) : void

Private Methods

Method Description
Component_NetworkInformationReceived ( object sender, Glib e ) : void
CurrentSession_GameStarted ( object sender, GameStartedEventArgs e ) : void

Called on the computer of ALL PLAYERS when the game is started by the host.

CurrentSession_GamerJoined ( object sender, Microsoft.Xna.Framework.Net.GamerJoinedEventArgs e ) : void
CurrentSession_GamerLeft ( object sender, Microsoft.Xna.Framework.Net.GamerLeftEventArgs e ) : void
StartLabel_Pressed ( object sender, EventArgs e ) : void

Start label pressed event handler.

Called when the HOST presses the start label.

StateManager_ScreenStateChanged ( object sender, EventArgs e ) : void
gameLeave ( object o, Microsoft.Xna.Framework.Net.GamerLeftEventArgs glea ) : void

Mid-game player leaving code.

lScr_ScreenFinished ( object sender, EventArgs e ) : void

Client-side switch to GameScreen after data reception.

onDataRecv ( ) : void

Called on the CLIENT side when the host-sent ship data has been received.

No networking.

playerShip_NetworkStateChanged ( object sender, EventArgs e ) : void

Called when the LOCAL SHIP needs to send network data.

Method Details

InitScreen() public method

public InitScreen ( ScreenType screenName ) : void
screenName ScreenType
return void

MPShipsScreen() public method

public MPShipsScreen ( SpriteBatch sb ) : System
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return System

Update() public method

public Update ( GameTime game ) : void
game GameTime
return void