C# Class Dodgeball.Engine.Sprite

Inheritance: GameObject
Afficher le fichier Open project: schonstal/BLOODBALL

Méthodes publiques

Свойство Type Description
alpha float
blend Microsoft.Xna.Framework.Graphics.BlendState
color Color
graphicHeight int
graphicWidth int
offset Vector2
screenPositioning ScreenPositioning
sheetOffset Vector2
visible bool

Protected Properties

Свойство Type Description
animations Animation>.Dictionary
atlas Microsoft.Xna.Framework.Graphics.Texture2D
currentAnimation String

Méthodes publiques

Méthode Description
Draw ( ) : void
Sprite ( float x = 0f, float y = 0f, int width, int height ) : System
Update ( ) : void
addAnimation ( String name, List frames, int fps = 15, bool looped = false ) : void
addAnimationCallback ( String animationName, Action callback ) : void
addOnCompleteCallback ( String animationName, Action callback ) : void
loadGraphic ( String textureName, int width, int height ) : void
play ( String animation ) : void
stop ( ) : void

Method Details

Draw() public méthode

public Draw ( ) : void
Résultat void

Sprite() public méthode

public Sprite ( float x = 0f, float y = 0f, int width, int height ) : System
x float
y float
width int
height int
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void

addAnimation() public méthode

public addAnimation ( String name, List frames, int fps = 15, bool looped = false ) : void
name String
frames List
fps int
looped bool
Résultat void

addAnimationCallback() public méthode

public addAnimationCallback ( String animationName, Action callback ) : void
animationName String
callback Action
Résultat void

addOnCompleteCallback() public méthode

public addOnCompleteCallback ( String animationName, Action callback ) : void
animationName String
callback Action
Résultat void

loadGraphic() public méthode

public loadGraphic ( String textureName, int width, int height ) : void
textureName String
width int
height int
Résultat void

play() public méthode

public play ( String animation ) : void
animation String
Résultat void

stop() public méthode

public stop ( ) : void
Résultat void

Property Details

alpha public_oe property

public float alpha
Résultat float

animations protected_oe property

protected Dictionary animations
Résultat Animation>.Dictionary

atlas protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics atlas
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

blend public_oe property

public BlendState,Microsoft.Xna.Framework.Graphics blend
Résultat Microsoft.Xna.Framework.Graphics.BlendState

color public_oe property

public Color color
Résultat Color

currentAnimation protected_oe property

protected String currentAnimation
Résultat String

graphicHeight public_oe property

public int graphicHeight
Résultat int

graphicWidth public_oe property

public int graphicWidth
Résultat int

offset public_oe property

public Vector2 offset
Résultat Vector2

screenPositioning public_oe property

public ScreenPositioning screenPositioning
Résultat ScreenPositioning

sheetOffset public_oe property

public Vector2 sheetOffset
Résultat Vector2

visible public_oe property

public bool visible
Résultat bool