C# Класс Server.GameServerForm

Показать файл Открыть проект

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

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

Actually send out our messages

Update ( ) : void

This is the update loop used to constantly update the game objects checking for collisions, and removing objects

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

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Метод Описание
Form1_Load ( object sender, EventArgs e ) : void

Form1_Load is called when server is started by the user, sets up the UDP Socket.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnReceive ( IAsyncResult ar ) : void

This function is to unpack all the data received from a client.

PlayerAction ( Data msgReceived ) : Data

Setup a player action, by going through the received data and figuring out which action a player is performing (move, shoot, etc.)

txtLog_TextChanged ( object sender, EventArgs e ) : void

This method is currently not in use, will be implemented with chat.

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

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

public GameServerForm ( ) : System
Результат System

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

Actually send out our messages
public OnSend ( IAsyncResult ar ) : void
ar IAsyncResult Status of the asynchronous operation
Результат void

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

This is the update loop used to constantly update the game objects checking for collisions, and removing objects
public Update ( ) : void
Результат void