C# 클래스 AngryTanks.Client.LocalPlayer

상속: Player
파일 보기 프로젝트 열기: dvicory/AngryTanks 1 사용 예제들

공개 메소드들

메소드 설명
Die ( Player killer ) : void
LocalPlayer ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
Spawn ( Vector2 position, float rotation ) : void
Update ( GameTime gameTime ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void

비공개 메소드들

메소드 설명
CheckShots ( GameTime gameTime ) : void
KeyPressed ( Keys key ) : void
UpdatePosition ( GameTime gameTime ) : void

메소드 상세

Die() 공개 메소드

public Die ( Player killer ) : void
killer Player
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

HandleReceivedMessage() 보호된 메소드

protected HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
sender object
message AngryTanks.Client.ServerLinkMessageEvent
리턴 void

LocalPlayer() 공개 메소드

public LocalPlayer ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
world AngryTanks.Client.World
playerInfo PlayerInformation
리턴 System

Shoot() 보호된 메소드

protected Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
shotSlot Byte
initialPosition Vector2
rotation System.Single
initialVelocity Vector2
local bool
리턴 void

Spawn() 공개 메소드

public Spawn ( Vector2 position, float rotation ) : void
position Vector2
rotation float
리턴 void

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void