C# Класс Azmyth.XNA.PlayerManager

Наследование: Microsoft.Xna.Framework.GameComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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