Method | Description | |
---|---|---|
Add ( string state, IGameDrawable drawable, string group = "" ) : |
Adds the specified IGameDrawable to this DrawableSet under the specified *state*. Optionally, the IGameDrawable being added can also be associated with a *group*. When an IGameDrawable is added to a DrawableSet, it is wrapped around a DrawableInstance class that allows properties about the drawable to be set such as its Color, Rotation, Visibility etc... This DrawableInstance that is created to wrap the IGameDrawable is returned by this method.
|
|
AddGroup ( string group ) : bool | ||
AddState ( string state ) : bool | ||
ClearAll ( ) : void |
Clears all drawable items from this DrawableSet. After this opereation, this DrawableSet will have no more States or Groups.
|
|
GetByGroup ( string group ) : HashSet |
Returns all the DrawableInstances associated with the *group* specified in the parameter. If the group does not exist within this DrawableSet, a null value is returned.
|
|
GetByState ( string state ) : HashSet |
Returns all the DrawableInstances associated with the *state* specified in the parameter. If the group does not exist within this DrawableSet, a null value is returned.
|
|
GetGroups ( ) : ICollection |
Returns a collection of all *groups* found within this DrawableSet.
|
|
GetStates ( ) : ICollection |
Returns a collection of all *states* found within this DrawableSet.
|
|
IsGroupFinished ( string group, |
||
IsStateFinished ( string state, |
||
LoadDrawableSetXml ( |
Loads a DrawableSet file into a specified DrawableSet object. The method requires the string path to the xml file containing the drawable data and a reference to the ContentManager. An optional Layer value can be specified for the ordering of the drawables in the DrawableSet. Currently only supports loading of Animation objects.
|
|
Remove ( |
Removes the specified DrawableInstance from this DrawableSet. This will only work if the DrawableInstance belongs to this DrawableSet - it will not work if it belongs to another. Returns a true boolean value if the specified instance was found within this set and removed. If nothing was removed, a false value is returned.
|
|
Remove ( IGameDrawable drawable, string state ) : bool |
Removes the DrawableInstance of the specified drawable from the specified set of this DrawableSet. Returns a true boolean value specifying if such an instance with the specified was found and removed. If nothing was removed, a false value is returned.
|
|
Remove ( |
Performs Set negation between this DrawableSet and the DrawabelSet specified in the parameter. While two sets should never share the same DrawableInstance, they may share the same IGameDrawable which would be wrapped by an DrawableInstance. If the DrawableSet specified in the parameter contains IGameDrawables within the same state as this DrawableSet, then associated DrawableInstance's are removed.
|
|
RemoveGroup ( string group ) : bool | ||
RemoveState ( string state ) : bool | ||
ResetGroup ( string group, |
Asks all IGameDrawables within the specified *group* set to perform a Reset operation. By performing a Reset operation, each GameDrawable should act like it has just been created.
|
|
ResetState ( string state, |
Asks all IGameDrawables within the specified *state* set to perform a Reset operation.
|
|
SetGroupProperty ( string group, string property, object value ) : void |
Sets the specified property for all the DrawableInstances in the specified group using C# Reflection. The property to be set should be specified as a case sensitive string and its value should be set with an type that matches the Properties type. If the property specified does not exist in the DrawableInstance class, then an ArgumentException is thrown.
|
|
SetStateProperty ( string state, string property, object value ) : void |
Sets the specified property for all the DrawableInstances in the specified state using C# Reflection. The property to be set should be specified as a case sensitive string and its value should be set with an type that matches the Properties type. If the property specified does not exist in the DrawableInstance class, then an ArgumentException is thrown.
|
|
ToString ( ) : string | ||
Union ( |
Performs a Set union operation between this DrawableSet and the DrawableSet specified in the parameter. It is important to note that any IGameDrawables newly created in this DrawableSet are wrapped around a *new* DrawableInstance in order to allow properties to be set independently for each one.
|
public Add ( string state, IGameDrawable drawable, string group = "" ) : |
||
state | string | |
drawable | IGameDrawable | |
group | string | |
return |
public IsGroupFinished ( string group, |
||
group | string | |
gameTime | ||
return | bool |
public IsStateFinished ( string state, |
||
state | string | |
gameTime | ||
return | bool |
public static LoadDrawableSetXml ( |
||
drawableSet | DrawableSet object to load the animations into. | |
path | string | String path to the XML formatted .anim file |
content | Microsoft.Xna.Framework.Content.ContentManager | Reference to the ContentManager instance being used in the application |
startTimeMS | double | |
return | void |
public Remove ( |
||
drawableInstance | ||
return | bool |
public Remove ( IGameDrawable drawable, string state ) : bool | ||
drawable | IGameDrawable | |
state | string | |
return | bool |
public Remove ( |
||
drawableSet | ||
return | void |
public ResetGroup ( string group, |
||
group | string | |
gameTime | ||
return | void |
public ResetState ( string state, |
||
state | string | |
gameTime | ||
return | void |
public SetGroupProperty ( string group, string property, object value ) : void | ||
group | string | |
property | string | |
value | object | |
return | void |
public SetStateProperty ( string state, string property, object value ) : void | ||
state | string | |
property | string | |
value | object | |
return | void |
public Union ( |
||
drawableSet | ||
return | void |