C# 클래스 Server.GameServerForm

파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project

공개 메소드들

메소드 설명
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