C# Class MonoGameQuest.PlayerSprite

Inheritance: Sprite
Exibir arquivo Open project: half-ogre/MonoGameQuest Class Usage Examples

Public Methods

Method Description
AddAnimation ( AnimationType type, Direction direction, int spriteSheetRow, int framesLength, int frameDuration, bool flipHorizontally = false ) : void
Animate ( AnimationType type, Direction direction ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
BeginSpriteBatch ( ) : void
PlayerSprite ( MonoGameQuest game, string spriteSheetName, int pixelWidth, int pixelHeight, int pixelOffsetX, int pixelOffsetY, Vector2 coordinatePosition ) : System
TranslateCoordinatePositionToPixelPosition ( ) : void

Method Details

AddAnimation() public method

public AddAnimation ( AnimationType type, Direction direction, int spriteSheetRow, int framesLength, int frameDuration, bool flipHorizontally = false ) : void
type AnimationType
direction Direction
spriteSheetRow int
framesLength int
frameDuration int
flipHorizontally bool
return void

Animate() public method

public Animate ( AnimationType type, Direction direction ) : void
type AnimationType
direction Direction
return void

BeginSpriteBatch() protected method

protected BeginSpriteBatch ( ) : void
return void

PlayerSprite() protected method

protected PlayerSprite ( MonoGameQuest game, string spriteSheetName, int pixelWidth, int pixelHeight, int pixelOffsetX, int pixelOffsetY, Vector2 coordinatePosition ) : System
game MonoGameQuest
spriteSheetName string
pixelWidth int
pixelHeight int
pixelOffsetX int
pixelOffsetY int
coordinatePosition Vector2
return System

TranslateCoordinatePositionToPixelPosition() protected method

protected TranslateCoordinatePositionToPixelPosition ( ) : void
return void

Update() public method

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