Click or drag to resize
SpriteState Class
Represents one state within a sprite definition, primarily defining how a it can animate.
Inheritance Hierarchy
SystemObject
  (Default Namespace)SpriteState

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public class SpriteState

The SpriteState type exposes the following members.

Constructors
  NameDescription
Public methodSpriteState
Constructs a new state given all the information for the state.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetFrame
Return a list of all frame indexes that represent a particular animation frame of a sprite.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMask
Get the collision mask for a specified sprite frame.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyFrameset
Returns the frameset on which all graphics in this state are based.
Public propertyLocalBounds
Returns a rectangle (relative to the origin of the sprite) that bounds all the graphics in this state.
Public propertySolidHeight
Retrieve the solid height of this state.
Public propertySolidWidth
Retrieve the solid width of this state.
Top
See Also