C# Class GameClient.Game1

Inheritance: Game
Mostrar archivo Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Properties

Property Type Description
bulletList List
clientSocket Socket
epServer EndPoint
planetList List
playerID int
playercount int
shipList List
shipList List
strName string

Public Methods

Method Description
Game1 ( ) : System

Default constructer

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run.

LoadContent ( ) : void

LoadContent will be called once per game to load all content.

UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Allows the game gather input from the user.

Private Methods

Method Description
OnReceive ( IAsyncResult ar ) : void

Receiving data function, goes through data received and uses the appropriate command

OnSend ( IAsyncResult ar ) : void

On send function

Method Details

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Game1() public method

Default constructer
public Game1 ( ) : System
return System

Initialize() protected method

Allows the game to perform any initialization it needs to before starting to run.
protected Initialize ( ) : void
return void

LoadContent() protected method

LoadContent will be called once per game to load all content.
protected LoadContent ( ) : void
return void

UnloadContent() protected method

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
return void

Update() protected method

Allows the game gather input from the user.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Property Details

bulletList public_oe static_oe property

public static List bulletList
return List

clientSocket public_oe property

public Socket clientSocket
return Socket

epServer public_oe property

public EndPoint epServer
return EndPoint

planetList public_oe static_oe property

public static List planetList
return List

playerID public_oe property

public int playerID
return int

playercount public_oe property

public int playercount
return int

shipList public_oe static_oe property

public static List shipList
return List

shipList public_oe static_oe property

public static List shipList
return List

strName public_oe property

public string strName
return string