C# Класс GameClient.Game1

Наследование: Game
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
bulletList List
clientSocket Socket
epServer EndPoint
planetList List
playerID int
playercount int
shipList List
shipList List
strName string

Открытые методы

Метод Описание
Game1 ( ) : System

Default constructer

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
OnReceive ( IAsyncResult ar ) : void

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

OnSend ( IAsyncResult ar ) : void

On send function

Описание методов

Draw() защищенный Метод

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.
Результат void

Game1() публичный Метод

Default constructer
public Game1 ( ) : System
Результат System

Initialize() защищенный Метод

Allows the game to perform any initialization it needs to before starting to run.
protected Initialize ( ) : void
Результат void

LoadContent() защищенный Метод

LoadContent will be called once per game to load all content.
protected LoadContent ( ) : void
Результат void

UnloadContent() защищенный Метод

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
Результат void

Update() защищенный Метод

Allows the game gather input from the user.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

Описание свойств

bulletList публичное статическое свойство

public static List bulletList
Результат List

clientSocket публичное свойство

public Socket clientSocket
Результат Socket

epServer публичное свойство

public EndPoint epServer
Результат EndPoint

planetList публичное статическое свойство

public static List planetList
Результат List

playerID публичное свойство

public int playerID
Результат int

playercount публичное свойство

public int playercount
Результат int

shipList публичное статическое свойство

public static List shipList
Результат List

shipList публичное статическое свойство

public static List shipList
Результат List

strName публичное свойство

public string strName
Результат string