Property | Type | Description | |
---|---|---|---|
color | Color | ||
currentFrame | int | ||
frameCount | int | ||
frameHeight | int | ||
frameWidth | int | ||
lastAnimTime | float | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
timeBetweenFrames | float |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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 | |
return | System |
public Draw ( |
||
sBatch | ||
dest | ||
direction | double | |
return | void |
public Draw ( |
||
sBatch | ||
dest | ||
direction | double | |
return | void |
public Draw ( |
||
sBatch | ||
location | Vector2 | |
direction | double | |
return | void |
public FastDraw ( |
||
sBatch | ||
dest | ||
return | void |
public setCurrentFrame ( int newFrame ) : void | ||
newFrame | int | |
return | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics texture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |