C# Class PGCGame.Screens.GameScreen

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

Public Properties

Property Type Description
MPEnemyDeadTime System.TimeSpan
ScreensToAllowMusicProcessing ScreenType[]
World Microsoft.Xna.Framework.Graphics.SpriteBatch

Public Methods

Method Description
GameScreen ( SpriteBatch spriteBatch ) : System
InitScreen ( ScreenType screenType ) : void
InitializeScreen ( ShipStats ship, bool spawnEnemies ) : void
MiscellaneousProcessing ( ) : void
NetworkData_DataReceived ( object sender, Glib e ) : void
OpenSpriteBatch ( SpriteBatch &sb ) : void
Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
RegenerateClones ( ) : void
ResetLastKS ( ) : void
Update ( GameTime gameTime ) : void
bgspr_Drawn ( object sender, EventArgs e ) : void
miniMap_Updated ( object sender, EventArgs e ) : void
playerShip_BulletFired ( object sender, BulletEventArgs e ) : void

Called when the player fires a bullet.

Currently only houses multiplayer bullet sending code.

playerShip_WCMoved ( object sender, EventArgs e ) : void

Private Methods

Method Description
addShipToMinimap ( Ship ship, Ship &activeMiniShipDisplay ) : void
wcMovePreUpdate ( object o, EventArgs ea ) : void

Method Details

GameScreen() public method

public GameScreen ( SpriteBatch spriteBatch ) : System
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return System

InitScreen() public method

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

InitializeScreen() public method

public InitializeScreen ( ShipStats ship, bool spawnEnemies ) : void
ship PGCGame.CoreTypes.ShipStats
spawnEnemies bool
return void

MiscellaneousProcessing() public method

public MiscellaneousProcessing ( ) : void
return void

NetworkData_DataReceived() public method

public NetworkData_DataReceived ( object sender, Glib e ) : void
sender object
e Glib
return void

OpenSpriteBatch() public method

public OpenSpriteBatch ( SpriteBatch &sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Options_ScreenResolutionChanged() public method

public Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
sender object
e PGCGame.CoreTypes.ViewportEventArgs
return void

RegenerateClones() public method

public RegenerateClones ( ) : void
return void

ResetLastKS() public method

public ResetLastKS ( ) : void
return void

Update() public method

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

bgspr_Drawn() public method

public bgspr_Drawn ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

miniMap_Updated() public method

public miniMap_Updated ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

playerShip_BulletFired() public method

Called when the player fires a bullet.
Currently only houses multiplayer bullet sending code.
public playerShip_BulletFired ( object sender, BulletEventArgs e ) : void
sender object
e PGCGame.CoreTypes.BulletEventArgs
return void

playerShip_WCMoved() public method

public playerShip_WCMoved ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

MPEnemyDeadTime public_oe static_oe property

public static TimeSpan,System MPEnemyDeadTime
return System.TimeSpan

ScreensToAllowMusicProcessing public_oe static_oe property

public static ScreenType[] ScreensToAllowMusicProcessing
return ScreenType[]

World public_oe static_oe property

public static SpriteBatch,Microsoft.Xna.Framework.Graphics World
return Microsoft.Xna.Framework.Graphics.SpriteBatch