C# Class Azmyth.XNA.PlayerManager

Inheritance: Microsoft.Xna.Framework.GameComponent
Datei anzeigen Open project: GalacticSoft/Azmyth Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
createCircleText ( int radius ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

Draw() public method

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

GetChunkX() public method

public GetChunkX ( float chunkSize ) : float
chunkSize float
return float

GetChunkY() public method

public GetChunkY ( float chunkSize ) : float
chunkSize float
return float

Initialize() public method

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
return void

LoadContent() public method

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

Move() public method

public Move ( Directions direction ) : void
direction Directions
return void

PlayerManager() public method

public PlayerManager ( AzmythGame game ) : System
game AzmythGame
return System

SetPosition() public method

public SetPosition ( int x, int y ) : void
x int
y int
return void

Update() public method

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