C# Class fliXNA_xbox.FlxSprite

Inheritance: FlxObject
Datei anzeigen Open project: bpercevic/flixel-XNA Class Usage Examples

Public Properties

Property Type Description
alpha float
dirty System.Boolean
finished System.Boolean
frameHeight float
frameWidth float
frames uint
moving bool
offset FlxPoint
origin FlxPoint
scale FlxPoint

Protected Properties

Property Type Description
ImgDefault Microsoft.Xna.Framework.Graphics.Texture2D
_animated System.Boolean
_animations List
_bakedRotation float
_color Color
_curAnim FlxAnim
_curFrame int
_curIndex int
_facing uint
_flipped uint
_frameTimer float
_matrix Matrix
camX float
camY float
oX float
oY float
sourceRect FlxRect

Public Methods

Method Description
FlxSprite ( float X, float Y, Microsoft.Xna.Framework.Graphics.Texture2D Graphic = null ) : System
addAnimation ( String Name, int Frames, float FrameRate = 1, System.Boolean Looped = true ) : void
addAnimationCallback ( Action AnimationCallback ) : void
centerOffsets ( bool AdjustPosition = false ) : void
destroy ( ) : void
draw ( ) : void
getVec2 ( ) : Vector2
loadGraphic ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, System.Boolean Animated = false, System.Boolean Reverse = false, float Width, float Height ) : FlxSprite
makeGraphic ( float Width, float Height, Color color ) : FlxSprite
onScreen ( FlxCamera Camera = null ) : bool
play ( String AnimName, System.Boolean Force = false ) : void
postUpdate ( ) : void
reset ( float X, float Y ) : void
update ( ) : void

Protected Methods

Method Description
calcFrame ( ) : void
resetHelpers ( ) : void
updateAnimation ( ) : void

Method Details

FlxSprite() public method

public FlxSprite ( float X, float Y, Microsoft.Xna.Framework.Graphics.Texture2D Graphic = null ) : System
X float
Y float
Graphic Microsoft.Xna.Framework.Graphics.Texture2D
return System

addAnimation() public method

public addAnimation ( String Name, int Frames, float FrameRate = 1, System.Boolean Looped = true ) : void
Name String
Frames int
FrameRate float
Looped System.Boolean
return void

addAnimationCallback() public method

public addAnimationCallback ( Action AnimationCallback ) : void
AnimationCallback Action
return void

calcFrame() protected method

protected calcFrame ( ) : void
return void

centerOffsets() public method

public centerOffsets ( bool AdjustPosition = false ) : void
AdjustPosition bool
return void

destroy() public method

public destroy ( ) : void
return void

draw() public method

public draw ( ) : void
return void

getVec2() public method

public getVec2 ( ) : Vector2
return Vector2

loadGraphic() public method

public loadGraphic ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, System.Boolean Animated = false, System.Boolean Reverse = false, float Width, float Height ) : FlxSprite
Graphic Microsoft.Xna.Framework.Graphics.Texture2D
Animated System.Boolean
Reverse System.Boolean
Width float
Height float
return FlxSprite

makeGraphic() public method

public makeGraphic ( float Width, float Height, Color color ) : FlxSprite
Width float
Height float
color Color
return FlxSprite

onScreen() public method

public onScreen ( FlxCamera Camera = null ) : bool
Camera FlxCamera
return bool

play() public method

public play ( String AnimName, System.Boolean Force = false ) : void
AnimName String
Force System.Boolean
return void

postUpdate() public method

public postUpdate ( ) : void
return void

reset() public method

public reset ( float X, float Y ) : void
X float
Y float
return void

resetHelpers() protected method

protected resetHelpers ( ) : void
return void

update() public method

public update ( ) : void
return void

updateAnimation() protected method

protected updateAnimation ( ) : void
return void

Property Details

ImgDefault protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics ImgDefault
return Microsoft.Xna.Framework.Graphics.Texture2D

_animated protected_oe property

protected Boolean,System _animated
return System.Boolean

_animations protected_oe property

protected List _animations
return List

_bakedRotation protected_oe property

protected float _bakedRotation
return float

_color protected_oe property

protected Color _color
return Color

_curAnim protected_oe property

protected FlxAnim,fliXNA_xbox _curAnim
return FlxAnim

_curFrame protected_oe property

protected int _curFrame
return int

_curIndex protected_oe property

protected int _curIndex
return int

_facing protected_oe property

protected uint _facing
return uint

_flipped protected_oe property

protected uint _flipped
return uint

_frameTimer protected_oe property

protected float _frameTimer
return float

_matrix protected_oe property

protected Matrix _matrix
return Matrix

alpha public_oe property

public float alpha
return float

camX protected_oe property

protected float camX
return float

camY protected_oe property

protected float camY
return float

dirty public_oe property

public Boolean,System dirty
return System.Boolean

finished public_oe property

public Boolean,System finished
return System.Boolean

frameHeight public_oe property

public float frameHeight
return float

frameWidth public_oe property

public float frameWidth
return float

frames public_oe property

public uint frames
return uint

moving public_oe property

public bool moving
return bool

oX protected_oe property

protected float oX
return float

oY protected_oe property

protected float oY
return float

offset public_oe property

public FlxPoint offset
return FlxPoint

origin public_oe property

public FlxPoint origin
return FlxPoint

scale public_oe property

public FlxPoint scale
return FlxPoint

sourceRect protected_oe property

protected FlxRect,fliXNA_xbox sourceRect
return FlxRect