C# Класс Dodgeball.Engine.Sprite

Наследование: GameObject
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
alpha float
blend Microsoft.Xna.Framework.Graphics.BlendState
color Color
graphicHeight int
graphicWidth int
offset Vector2
screenPositioning ScreenPositioning
sheetOffset Vector2
visible bool

Защищенные свойства (Protected)

Свойство Тип Описание
animations Animation>.Dictionary
atlas Microsoft.Xna.Framework.Graphics.Texture2D
currentAnimation String

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

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

Описание методов

Draw() публичный Метод

public Draw ( ) : void
Результат void

Sprite() публичный Метод

public Sprite ( float x = 0f, float y = 0f, int width, int height ) : System
x float
y float
width int
height int
Результат System

Update() публичный Метод

public Update ( ) : void
Результат void

addAnimation() публичный Метод

public addAnimation ( String name, List frames, int fps = 15, bool looped = false ) : void
name String
frames List
fps int
looped bool
Результат void

addAnimationCallback() публичный Метод

public addAnimationCallback ( String animationName, Action callback ) : void
animationName String
callback Action
Результат void

addOnCompleteCallback() публичный Метод

public addOnCompleteCallback ( String animationName, Action callback ) : void
animationName String
callback Action
Результат void

loadGraphic() публичный Метод

public loadGraphic ( String textureName, int width, int height ) : void
textureName String
width int
height int
Результат void

play() публичный Метод

public play ( String animation ) : void
animation String
Результат void

stop() публичный Метод

public stop ( ) : void
Результат void

Описание свойств

alpha публичное свойство

public float alpha
Результат float

animations защищенное свойство

protected Dictionary animations
Результат Animation>.Dictionary

atlas защищенное свойство

protected Texture2D,Microsoft.Xna.Framework.Graphics atlas
Результат Microsoft.Xna.Framework.Graphics.Texture2D

blend публичное свойство

public BlendState,Microsoft.Xna.Framework.Graphics blend
Результат Microsoft.Xna.Framework.Graphics.BlendState

color публичное свойство

public Color color
Результат Color

currentAnimation защищенное свойство

protected String currentAnimation
Результат String

graphicHeight публичное свойство

public int graphicHeight
Результат int

graphicWidth публичное свойство

public int graphicWidth
Результат int

offset публичное свойство

public Vector2 offset
Результат Vector2

screenPositioning публичное свойство

public ScreenPositioning screenPositioning
Результат ScreenPositioning

sheetOffset публичное свойство

public Vector2 sheetOffset
Результат Vector2

visible публичное свойство

public bool visible
Результат bool