Свойство | Type | Description | |
---|---|---|---|
Acceleration | float | ||
Angle | float | ||
AngleShift | float | ||
AngularAcceleration | float | ||
BlendState | |||
Momentum | Vector2 | ||
Pause | PauseTarget | ||
Scale | float | ||
ScaleShift | float | ||
ScaleVector | Vector2? | ||
TintColor | Color | ||
TransparencyShift | float |
Méthode | Description | |
---|---|---|
AnimateProperty ( float>.Action |
Animate a custom float property.
|
|
AnimateProperty ( AnimatableProperty pty, Vector2 value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void |
Animate a standard vector property.
|
|
AnimateProperty ( AnimatableProperty pty, float value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void |
Animate a standard float property.
|
|
AnimateProperty ( Color value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void |
Animate a standard color property.
|
|
Blink ( int times, float duration ) : void |
Make the object blink.
|
|
Draw ( |
||
IsAnimatingProperty ( AnimatableProperty pty ) : bool |
Check if a property is currently being animated.
|
|
Move ( float speed, float angle ) : void |
Make the object move in a given direction at a given speed.
|
|
MoveAlongCurve ( ) : void |
Move an object along a bezier curve.
|
|
MoveAlongCurve ( IEnumerable |
Move an object along a bezier curve.
|
|
MoveToPoint ( Vector2 point, float time, InterpolationMode mode = InterpolationMode.Linear ) : void |
Move to a specified point in a given amount of time.
|
|
MoveToPoint ( float x, float y, float time, InterpolationMode mode = InterpolationMode.Linear ) : void |
Move to a specified point in a given amount of time.
|
|
MoveTowards ( Vector2 point ) : void |
Move the object towards a point.
|
|
MoveTowards ( |
Move the object towards another object.
|
|
PauseAnimatingAllProperties ( bool pause = true ) : void |
Suspend all property animation until further notice.
|
|
PauseAnimatingProperty ( AnimatableProperty pty, bool pause = true ) : void |
Suspend property animation until further notice.
|
|
Remove ( ) : void |
Remove the object by applying fadeout effects.
|
|
Remove ( bool instantly ) : void |
Remove the object.
|
|
Stop ( ) : void |
Stop the object.
|
|
StopAnimatingAllProperties ( bool finish = true ) : void |
Stop animating all properties at once.
|
|
StopAnimatingProperty ( AnimatableProperty pty, bool finish = true ) : void |
Stop animating a property.
|
|
Update ( ) : void |
Applies value derivatives to values.
|
Méthode | Description | |
---|---|---|
DynamicObject ( ) : System |
Méthode | Description | |
---|---|---|
findAnimator ( AnimatableProperty pty ) : IPropertyAnimator |
Find an animator for a property;
|
|
updateAnimatedProperties ( ) : void |
Update all animated properties for the object.
|
public AnimateProperty ( float>.Action |
||
setter | float>.Action | The function that sets the object's property. |
initial | float | Initial value. |
value | float | Desired value. |
time | float | Effect duration. |
interpolationMode | InterpolationMode | Interpolation mode. |
animateBack | bool | Flag that animates the property back when the effect has finished. |
Résultat | void |
public AnimateProperty ( AnimatableProperty pty, Vector2 value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void | ||
pty | AnimatableProperty | Property to animate. Can be Position and ScaleVector. |
value | Vector2 | Desired value. |
time | float | Effect duration. |
interpolationMode | InterpolationMode | Interpolation mode. |
animateBack | bool | Flag that animates the property back when the effect has finished. |
Résultat | void |
public AnimateProperty ( AnimatableProperty pty, float value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void | ||
pty | AnimatableProperty | Property type to animate. Can be Angle, Scale and Transparency. |
value | float | Desired value. |
time | float | Effect duration. |
interpolationMode | InterpolationMode | Interpolation mode. |
animateBack | bool | Flag that animates the property back when the effect has finished. |
Résultat | void |
public AnimateProperty ( Color value, float time, InterpolationMode interpolationMode = InterpolationMode.Linear, bool animateBack = false ) : void | ||
value | Color | Desired value. |
time | float | Effect duration. |
interpolationMode | InterpolationMode | Interpolation mode. |
animateBack | bool | Flag that animates the property back when the effect has finished. |
Résultat | void |
public Blink ( int times, float duration ) : void | ||
times | int | Number of times to blink. |
duration | float | Length of the blinking effect duration. |
Résultat | void |
public Draw ( |
||
batch | ||
Résultat | void |
public IsAnimatingProperty ( AnimatableProperty pty ) : bool | ||
pty | AnimatableProperty | Property type. |
Résultat | bool |
public Move ( float speed, float angle ) : void | ||
speed | float | Speed. |
angle | float | Direction. |
Résultat | void |
public MoveAlongCurve ( IEnumerable |
||
points | IEnumerable |
Point array. |
Résultat | void |
public MoveToPoint ( Vector2 point, float time, InterpolationMode mode = InterpolationMode.Linear ) : void | ||
point | Vector2 | Destination point. |
time | float | Movement duration. |
mode | InterpolationMode | Interpolation mode. |
Résultat | void |
public MoveToPoint ( float x, float y, float time, InterpolationMode mode = InterpolationMode.Linear ) : void | ||
x | float | Destination point's X coordinate. |
y | float | Destination point's Y coordinate. |
time | float | Movement duration. |
mode | InterpolationMode | Interpolation mode. |
Résultat | void |
public MoveTowards ( Vector2 point ) : void | ||
point | Vector2 | Desired point. |
Résultat | void |
public MoveTowards ( |
||
obj | Object to move towards. | |
Résultat | void |
public PauseAnimatingAllProperties ( bool pause = true ) : void | ||
pause | bool | Pause flag. |
Résultat | void |
public PauseAnimatingProperty ( AnimatableProperty pty, bool pause = true ) : void | ||
pty | AnimatableProperty | |
pause | bool | Pause flag. |
Résultat | void |
public Remove ( bool instantly ) : void | ||
instantly | bool | Apply fadeout effects or not? |
Résultat | void |
public StopAnimatingAllProperties ( bool finish = true ) : void | ||
finish | bool | Set the property to desired value or leave it as it is? |
Résultat | void |
public StopAnimatingProperty ( AnimatableProperty pty, bool finish = true ) : void | ||
pty | AnimatableProperty | Property. |
finish | bool | Set the property to desired value or leave as it is? |
Résultat | void |
public BlendState,Microsoft.Xna.Framework.Graphics BlendState | ||
Résultat |