C# Class Shooter.Entities.Projectile

Inheritance: Entity
Mostra file Open project: JoeyTheAsian/Just-Force Class Usage Examples

Protected Properties

Property Type Description
distTraveled double
isRifleRound bool
playerShot bool
range double
velocity double

Public Methods

Method Description
CheckHit ( Character e, Weapon w ) : bool
CheckRange ( ) : bool
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, double v, string t, bool c, Rectangle r, double rng, bool rifle, bool isPlayerShot ) : System
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
UpdatePos ( double timeElapsed, int tileSize ) : void

Method Details

CheckHit() public method

public CheckHit ( Character e, Weapon w ) : bool
e Character
w Shooter.Controls.Weapon
return bool

CheckRange() public method

public CheckRange ( ) : bool
return bool

Projectile() public method

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
return System

Projectile() public method

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, double v, string t, bool c, Rectangle r, double rng, bool rifle, bool isPlayerShot ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
dir double
v double
t string
c bool
r Microsoft.Xna.Framework.Rectangle
rng double
rifle bool
isPlayerShot bool
return System

Projectile() public method

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
t string
r Microsoft.Xna.Framework.Rectangle
return System

UpdatePos() public method

public UpdatePos ( double timeElapsed, int tileSize ) : void
timeElapsed double
tileSize int
return void

Property Details

distTraveled protected_oe property

protected double distTraveled
return double

isRifleRound protected_oe property

protected bool isRifleRound
return bool

playerShot protected_oe property

protected bool playerShot
return bool

range protected_oe property

protected double range
return double

velocity protected_oe property

protected double velocity
return double