C# Класс TugOfBaby.Animation

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Texture Microsoft.Xna.Framework.Graphics.Texture2D
drawWidth int
frameHeight int
frameWidth int
frames List
looping bool

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

Метод Описание
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
Update ( GameTime gameTime ) : void

Приватные методы

Метод Описание
AddFrame ( Rectangle frameRectangle ) : void

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

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

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
Результат System

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

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
start int
stop int
Результат System

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

public Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
rotation float
flip bool
Результат void

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

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

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

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

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

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

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

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

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

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

public List frames
Результат List

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

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