C# Class EzGame.Perspective.Planar.Animation

ファイルを表示 Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Properties

Property Type Description
Frames Frame[]
Index uint
Loop bool
Origins Origin
Speed float

Public Methods

Method Description
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Origin Origin = null ) : Microsoft.Xna.Framework
Animation ( string Path, int Frames, bool Loop = false, float Speed = null ) : Microsoft.Xna.Framework
Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Origin ( uint Index = null ) : Origin
Override ( Origin Origin ) : void
Texture ( uint Index = null ) : Microsoft.Xna.Framework.Graphics.Texture2D
Update ( GameTime Time ) : void

Method Details

Animation() public method

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Origin Origin = null ) : Microsoft.Xna.Framework
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Origin Origin
return Microsoft.Xna.Framework

Animation() public method

public Animation ( string Path, int Frames, bool Loop = false, float Speed = null ) : Microsoft.Xna.Framework
Path string
Frames int
Loop bool
Speed float
return Microsoft.Xna.Framework

Draw() public method

public Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Batch Batch
Position Microsoft.Xna.Framework.Vector2
Color Microsoft.Xna.Framework.Color
Angle float
Scale Microsoft.Xna.Framework.Vector2
Effect SpriteEffects
Layer float
return void

Draw() public method

public Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Batch Batch
Position Microsoft.Xna.Framework.Vector2
Color Microsoft.Xna.Framework.Color
Angle float
Scale float
Effect SpriteEffects
Layer float
return void

Draw() public method

public Draw ( Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Position Microsoft.Xna.Framework.Vector2
Color Microsoft.Xna.Framework.Color
Angle float
Scale Microsoft.Xna.Framework.Vector2
Effect SpriteEffects
Layer float
return void

Draw() public method

public Draw ( Vector2 Position, Microsoft.Xna.Framework.Color Color, float Angle, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Position Microsoft.Xna.Framework.Vector2
Color Microsoft.Xna.Framework.Color
Angle float
Scale float
Effect SpriteEffects
Layer float
return void

Origin() public method

public Origin ( uint Index = null ) : Origin
Index uint
return Origin

Override() public method

public Override ( Origin Origin ) : void
Origin Origin
return void

Texture() public method

public Texture ( uint Index = null ) : Microsoft.Xna.Framework.Graphics.Texture2D
Index uint
return Microsoft.Xna.Framework.Graphics.Texture2D

Update() public method

public Update ( GameTime Time ) : void
Time Microsoft.Xna.Framework.GameTime
return void

Property Details

Frames public_oe property

public Frame[] Frames
return Frame[]

Index public_oe property

public uint Index
return uint

Loop public_oe property

public bool Loop
return bool

Origins public_oe property

public Origin Origins
return Origin

Speed public_oe property

public float Speed
return float