C# 클래스 AngryTanks.Client.Player

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

보호된 프로퍼티들

프로퍼티 타입 설명
playerInfo PlayerInformation
shots Shot>.Dictionary
state PlayerState

공개 메소드들

메소드 설명
Die ( Player killer ) : void
Dispose ( ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void

Draws the callsign behind the Player.

Player ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
Spawn ( Vector2 position, System.Single rotation ) : void
Update ( GameTime gameTime ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
Shoot ( Byte shotSlot, bool local ) : void

메소드 상세

Die() 공개 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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

Draw() 공개 메소드

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

DrawCallsign() 공개 메소드

Draws the callsign behind the Player.
public DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

GetTankSize() 보호된 정적인 메소드

protected static GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
world AngryTanks.Client.World
playerInfo PlayerInformation
리턴 Vector2

GetTexture() 보호된 정적인 메소드

protected static GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
world AngryTanks.Client.World
playerInfo PlayerInformation
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

HandleReceivedMessage() 보호된 메소드

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

Player() 공개 메소드

public Player ( 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

Shoot() 보호된 메소드

protected Shoot ( Byte shotSlot, bool local ) : void
shotSlot Byte
local bool
리턴 void

Spawn() 공개 메소드

public Spawn ( Vector2 position, System.Single rotation ) : void
position Vector2
rotation System.Single
리턴 void

Update() 공개 메소드

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

프로퍼티 상세

playerInfo 보호되어 있는 프로퍼티

protected PlayerInformation playerInfo
리턴 PlayerInformation

shots 보호되어 있는 프로퍼티

protected Dictionary shots
리턴 Shot>.Dictionary

state 보호되어 있는 프로퍼티

protected PlayerState state
리턴 PlayerState