C# Class GameClient.Game1

Inheritance: Game
Afficher le fichier Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
bulletList List
clientSocket Socket
epServer EndPoint
planetList List
playerID int
playercount int
shipList List
shipList List
strName string

Méthodes publiques

Méthode Description
Game1 ( ) : System

Default constructer

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat void

Game1() public méthode

Default constructer
public Game1 ( ) : System
Résultat System

Initialize() protected méthode

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

LoadContent() protected méthode

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

UnloadContent() protected méthode

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

Update() protected méthode

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

Property Details

bulletList public_oe static_oe property

public static List bulletList
Résultat List

clientSocket public_oe property

public Socket clientSocket
Résultat Socket

epServer public_oe property

public EndPoint epServer
Résultat EndPoint

planetList public_oe static_oe property

public static List planetList
Résultat List

playerID public_oe property

public int playerID
Résultat int

playercount public_oe property

public int playercount
Résultat int

shipList public_oe static_oe property

public static List shipList
Résultat List

shipList public_oe static_oe property

public static List shipList
Résultat List

strName public_oe property

public string strName
Résultat string