C# Class AnimatedSprite.PlayerWithWeapon

Inheritance: Sprite
Afficher le fichier Open project: itsligoGames/MonoGameTileSheetExample Class Usage Examples

Méthodes publiques

Свойство Type Description
Health int
MovingState STATE
TargetTilePos Vector2
speed float

Protected Properties

Свойство Type Description
Site CrossHair

Méthodes publiques

Méthode Description
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tx ) : void
PlayerWithWeapon ( Vector2 userPosition, Vector2 tileBounds, List InitialSheetRefs, int frameWidth, int frameHeight, float layerDepth ) : System
Update ( GameTime gameTime ) : void
checkforMovement ( ) : void
loadProjectile ( Projectile r ) : void
setFrameSet ( DIRECTION d, List sheetRefs ) : void
setHealthBar ( GraphicsDevice gDev ) : void

Method Details

Draw() public méthode

public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tx ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
tx Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

PlayerWithWeapon() public méthode

public PlayerWithWeapon ( Vector2 userPosition, Vector2 tileBounds, List InitialSheetRefs, int frameWidth, int frameHeight, float layerDepth ) : System
userPosition Vector2
tileBounds Vector2
InitialSheetRefs List
frameWidth int
frameHeight int
layerDepth float
Résultat System

Update() public méthode

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

checkforMovement() public méthode

public checkforMovement ( ) : void
Résultat void

loadProjectile() public méthode

public loadProjectile ( Projectile r ) : void
r Projectile
Résultat void

setFrameSet() public méthode

public setFrameSet ( DIRECTION d, List sheetRefs ) : void
d DIRECTION
sheetRefs List
Résultat void

setHealthBar() public méthode

public setHealthBar ( GraphicsDevice gDev ) : void
gDev GraphicsDevice
Résultat void

Property Details

Health public_oe property

public int Health
Résultat int

MovingState public_oe property

public STATE MovingState
Résultat STATE

Site protected_oe property

protected CrossHair,AnimatedSprite Site
Résultat CrossHair

TargetTilePos public_oe property

public Vector2 TargetTilePos
Résultat Vector2

speed public_oe property

public float speed
Résultat float