Свойство | Тип | Описание | |
---|---|---|---|
color | Color | ||
currentFrame | int | ||
frameCount | int | ||
frameHeight | int | ||
frameWidth | int | ||
lastAnimTime | float | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
timeBetweenFrames | float |
Метод | Описание | |
---|---|---|
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D aTexture, int fWidth, int fHeight, float animTime ) : System |
Constructor to assign values to all fields
|
|
Copy ( ) : |
||
Draw ( |
Draw a frame of the animation to the screen at the given location. dest specifies the rectangle to be filled by the frame Direction value orients the frame, and is given in radians
|
|
Draw ( |
Draw a frame of the animation to the screen at the given location. dest specifies the rectangle to be filled by the frame Direction value orients the frame, and is given in radians
|
|
Draw ( |
Draw a frame of the animation to the screen at the given location. Location specifies the CENTER of the frame Direction value orients the frame, and is given in radians
|
|
FastDraw ( |
Draw a frame of the animation to the screen at given location by rectangle bounds without rotation
|
|
Update ( float elapsedTime ) : void | ||
resetColor ( ) : void |
Reset the color of the animation to what is was originally
|
|
setColor ( Color newColor ) : void |
Changes the color of the animation permanently
|
|
setCurrentFrame ( int newFrame ) : void |
Sets the current frame of the animation Frame numbers start at 0 and go to frameCount - 1
|
Метод | Описание | |
---|---|---|
nextFrame ( ) : void |
public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D aTexture, int fWidth, int fHeight, float animTime ) : System | ||
aTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
fWidth | int | |
fHeight | int | |
animTime | float | |
Результат | System |
public Draw ( |
||
sBatch | ||
dest | ||
direction | double | |
Результат | void |
public Draw ( |
||
sBatch | ||
dest | ||
direction | double | |
Результат | void |
public Draw ( |
||
sBatch | ||
location | Vector2 | |
direction | double | |
Результат | void |
public FastDraw ( |
||
sBatch | ||
dest | ||
Результат | void |
public Update ( float elapsedTime ) : void | ||
elapsedTime | float | |
Результат | void |
public setCurrentFrame ( int newFrame ) : void | ||
newFrame | int | |
Результат | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics texture | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |