C# Class Azmyth.XNA.PlayerManager

Inheritance: Microsoft.Xna.Framework.GameComponent
Afficher le fichier Open project: GalacticSoft/Azmyth Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
createCircleText ( int radius ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

Draw() public méthode

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

GetChunkX() public méthode

public GetChunkX ( float chunkSize ) : float
chunkSize float
Résultat float

GetChunkY() public méthode

public GetChunkY ( float chunkSize ) : float
chunkSize float
Résultat float

Initialize() public méthode

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
Résultat void

LoadContent() public méthode

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

Move() public méthode

public Move ( Directions direction ) : void
direction Directions
Résultat void

PlayerManager() public méthode

public PlayerManager ( AzmythGame game ) : System
game AzmythGame
Résultat System

SetPosition() public méthode

public SetPosition ( int x, int y ) : void
x int
y int
Résultat void

Update() public méthode

Updates Player states.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void