C# Class Server.GameServerForm

Afficher le fichier Open project: pmyoung/Advanced-Game-Project

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GameServerForm() public méthode

public GameServerForm ( ) : System
Résultat System

OnSend() public méthode

Actually send out our messages
public OnSend ( IAsyncResult ar ) : void
ar IAsyncResult Status of the asynchronous operation
Résultat void

Update() public méthode

This is the update loop used to constantly update the game objects checking for collisions, and removing objects
public Update ( ) : void
Résultat void