C# Class SpaceBattle.Bullet

Inheritance: Actor
Mostra file Open project: luqui/space-shooter

Protected Properties

Property Type Description
color Vector4
position Vector2
velocity Vector2

Public Methods

Method Description
Bullet ( Vector2 pos, Vector2 vel, Vector4 color ) : System
Die ( ) : void
Draw ( ) : void
Update ( float dt ) : void

Method Details

Bullet() public method

public Bullet ( Vector2 pos, Vector2 vel, Vector4 color ) : System
pos Vector2
vel Vector2
color Vector4
return System

Die() public method

public Die ( ) : void
return void

Draw() public method

public Draw ( ) : void
return void

Update() public method

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

Property Details

color protected_oe property

protected Vector4 color
return Vector4

position protected_oe property

protected Vector2 position
return Vector2

velocity protected_oe property

protected Vector2 velocity
return Vector2