C# Class Source.Graphics.Particle

Displays a particle effect.
显示文件 Open project: HarkerGameDev/TheGame

Public Properties

Property Type Description
Angle float
AngularVelocity float
Color Color
LiveTime float
Position Vector2
Size Vector2
Size float
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Velocity Vector2
type System.Type

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
Particle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 velocity, float angle, float angularVelocity, Color color, float size, float liveTime ) : System
Particle ( Vector2 position, SpriteFont font, string text ) : System
Particle ( Vector2 position, Type type ) : System
Particle ( Vector2 position, Vector2 size, Microsoft.Xna.Framework.Graphics.Texture2D texture, float angle, Vector2 velocity, float angularVelocity, float lifeTime, Color color ) : System
Update ( float deltaTime ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Particle() public method

public Particle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 velocity, float angle, float angularVelocity, Color color, float size, float liveTime ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
velocity Vector2
angle float
angularVelocity float
color Color
size float
liveTime float
return System

Particle() public method

public Particle ( Vector2 position, SpriteFont font, string text ) : System
position Vector2
font Microsoft.Xna.Framework.Graphics.SpriteFont
text string
return System

Particle() public method

public Particle ( Vector2 position, Type type ) : System
position Vector2
type System.Type
return System

Particle() public method

public Particle ( Vector2 position, Vector2 size, Microsoft.Xna.Framework.Graphics.Texture2D texture, float angle, Vector2 velocity, float angularVelocity, float lifeTime, Color color ) : System
position Vector2
size Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
angle float
velocity Vector2
angularVelocity float
lifeTime float
color Color
return System

Update() public method

public Update ( float deltaTime ) : void
deltaTime float
return void

Property Details

Angle public_oe property

public float Angle
return float

AngularVelocity public_oe property

public float AngularVelocity
return float

Color public_oe property

public Color Color
return Color

LiveTime public_oe property

public float LiveTime
return float

Position public_oe property

public Vector2 Position
return Vector2

Size public_oe property

public Vector2 Size
return Vector2

Size public_oe property

public float Size
return float

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
return Microsoft.Xna.Framework.Graphics.Texture2D

Velocity public_oe property

public Vector2 Velocity
return Vector2

type public_oe property

public Type,System type
return System.Type