C#Code
C#Code
Public Member Functions | Private Attributes
Libraries.Sprites.SpriteProperties Class Reference

List of all members.

Public Member Functions

 SpriteProperties ()
void StoreProperty (BaseSpriteProperty property)
void Update (int timePassed, Sprite2D sprite)
BaseSpriteProperty GetPropertyByType (string type)
BaseSpriteProperty GetPropertyByID (string ID)
virtual void Clear ()
virtual void Render (Sprite2D sprite, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
 SpriteProperties ()
void StoreProperty (BaseSpriteProperty property)
void Update (int timePassed, Sprite2D sprite)
BaseSpriteProperty GetPropertyByType (string type)
BaseSpriteProperty GetPropertyByID (string ID)
virtual void Clear ()

Private Attributes

List< BaseSpritePropertym_properties
 Stores all the sprite properties.

Detailed Description

Used to store sprite properties.


Constructor & Destructor Documentation

Libraries.Sprites.SpriteProperties.SpriteProperties ( )

Default constructor.

Libraries.Sprites.SpriteProperties.SpriteProperties ( )

Default constructor.


Member Function Documentation

virtual void Libraries.Sprites.SpriteProperties.Clear ( ) [virtual]

Clear the data stored in the object.

virtual void Libraries.Sprites.SpriteProperties.Clear ( ) [virtual]

Clear the data stored in the object.

BaseSpriteProperty Libraries.Sprites.SpriteProperties.GetPropertyByID ( string  ID)

Retrive the stored sprite property that matches the ID, if one exists.

ID - ID of the property to retrive.

Return:
Value is the property that has a ID matching the given ID, null if no match was found.
BaseSpriteProperty Libraries.Sprites.SpriteProperties.GetPropertyByID ( string  ID)

Retrive the stored sprite property that matches the ID, if one exists.

ID - ID of the property to retrive.

Return:
Value is the property that has a ID matching the given ID, null if no match was found.
BaseSpriteProperty Libraries.Sprites.SpriteProperties.GetPropertyByType ( string  type)

Retrive the stored sprite property that matches the given property type, if one exists.

type - type of the property to retrive.

Return:
Value is the first instance found matching the given type, null if no match was found.
BaseSpriteProperty Libraries.Sprites.SpriteProperties.GetPropertyByType ( string  type)

Retrive the stored sprite property that matches the given property type, if one exists.

type - type of the property to retrive.

Return:
Value is the first instance found matching the given type, null if no match was found.
virtual void Libraries.Sprites.SpriteProperties.Render ( Sprite2D  sprite,
Microsoft.Xna.Framework.Graphics.SpriteBatch  spriteBatch 
) [virtual]

Updates all the stored properties.

sprite - Sprite the properties are in.
spriteBatch - Sprite batch to render with.
void Libraries.Sprites.SpriteProperties.StoreProperty ( BaseSpriteProperty  property)

Stores the given property. property - Property to store.

void Libraries.Sprites.SpriteProperties.StoreProperty ( BaseSpriteProperty  property)

Stores the given property.

property - Property to store.
void Libraries.Sprites.SpriteProperties.Update ( int  timePassed,
Sprite2D  sprite 
)

Updates all the stored properties.

timePassed - How much time the update is for.
sprite - Sprite the properties are in.
void Libraries.Sprites.SpriteProperties.Update ( int  timePassed,
Sprite2D  sprite 
)

Updates all the stored properties.

timePassed - How much time the update is for.
sprite - Sprite the properties are in.

Member Data Documentation

Stores all the sprite properties.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties