C# Class GrandLarceny.ImageManager

Exibir arquivo Open project: melburn/GLhf Class Usage Examples

Public Properties

Property Type Description
m_animationSpeed float

Public Methods

Method Description
ImageManager ( string a_sprite ) : System
draw ( Vector2 a_imgPosition, float a_rotation, Vector2 a_origin, Color a_color, SpriteEffects a_spriteEffect = SpriteEffects.None, float a_layer = 0.0f, float a_xScale = 1.0f, float a_yScale = 1.0f ) : void
getAnimationSpeed ( ) : float
getImage ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
getImagePath ( ) : string
getLength ( ) : int
getSize ( ) : Vector2
getSubImageIndex ( ) : float
isStopped ( ) : bool
isTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : System.Boolean
run ( ) : void
setAnimationSpeed ( float a_speed ) : void
setLooping ( System.Boolean a_looping ) : void
setSprite ( string a_sprite ) : bool
setSpriteSilently ( string a_sprite ) : bool
setSubImage ( float a_index ) : void
stop ( ) : void
update ( GameTime a_gameTime ) : void

Method Details

ImageManager() public method

public ImageManager ( string a_sprite ) : System
a_sprite string
return System

draw() public method

public draw ( Vector2 a_imgPosition, float a_rotation, Vector2 a_origin, Color a_color, SpriteEffects a_spriteEffect = SpriteEffects.None, float a_layer = 0.0f, float a_xScale = 1.0f, float a_yScale = 1.0f ) : void
a_imgPosition Vector2
a_rotation float
a_origin Vector2
a_color Color
a_spriteEffect SpriteEffects
a_layer float
a_xScale float
a_yScale float
return void

getAnimationSpeed() public method

public getAnimationSpeed ( ) : float
return float

getImage() public method

public getImage ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

getImagePath() public method

public getImagePath ( ) : string
return string

getLength() public method

public getLength ( ) : int
return int

getSize() public method

public getSize ( ) : Vector2
return Vector2

getSubImageIndex() public method

public getSubImageIndex ( ) : float
return float

isStopped() public method

public isStopped ( ) : bool
return bool

isTexture() public method

public isTexture ( Microsoft.Xna.Framework.Graphics.Texture2D a_texture ) : System.Boolean
a_texture Microsoft.Xna.Framework.Graphics.Texture2D
return System.Boolean

run() public method

public run ( ) : void
return void

setAnimationSpeed() public method

public setAnimationSpeed ( float a_speed ) : void
a_speed float
return void

setLooping() public method

public setLooping ( System.Boolean a_looping ) : void
a_looping System.Boolean
return void

setSprite() public method

public setSprite ( string a_sprite ) : bool
a_sprite string
return bool

setSpriteSilently() public method

public setSpriteSilently ( string a_sprite ) : bool
a_sprite string
return bool

setSubImage() public method

public setSubImage ( float a_index ) : void
a_index float
return void

stop() public method

public stop ( ) : void
return void

update() public method

public update ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

m_animationSpeed public_oe property

public float m_animationSpeed
return float