C# 클래스 GameClient.Game1

상속: Game
파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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