C# 클래스 Azmyth.XNA.PlayerManager

상속: Microsoft.Xna.Framework.GameComponent
파일 보기 프로젝트 열기: GalacticSoft/Azmyth 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void

Draws the loaded chunks visible in the viewport

GetChunkX ( float chunkSize ) : float
GetChunkY ( float chunkSize ) : float
Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Move ( Directions direction ) : void
PlayerManager ( AzmythGame game ) : System
SetPosition ( int x, int y ) : void
Update ( GameTime gameTime ) : void

Updates Player states.

비공개 메소드들

메소드 설명
createCircleText ( int radius ) : Microsoft.Xna.Framework.Graphics.Texture2D

메소드 상세

Draw() 공개 메소드

Draws the loaded chunks visible in the viewport
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

GetChunkX() 공개 메소드

public GetChunkX ( float chunkSize ) : float
chunkSize float
리턴 float

GetChunkY() 공개 메소드

public GetChunkY ( float chunkSize ) : float
chunkSize float
리턴 float

Initialize() 공개 메소드

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
public Initialize ( ) : void
리턴 void

LoadContent() 공개 메소드

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( ) : void
리턴 void

Move() 공개 메소드

public Move ( Directions direction ) : void
direction Directions
리턴 void

PlayerManager() 공개 메소드

public PlayerManager ( AzmythGame game ) : System
game AzmythGame
리턴 System

SetPosition() 공개 메소드

public SetPosition ( int x, int y ) : void
x int
y int
리턴 void

Update() 공개 메소드

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