C# Class Shooter.Entities.Projectile

Inheritance: Entity
Afficher le fichier Open project: JoeyTheAsian/Just-Force Class Usage Examples

Protected Properties

Свойство Type Description
distTraveled double
isRifleRound bool
playerShot bool
range double
velocity double

Méthodes publiques

Méthode 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 méthode

public CheckHit ( Character e, Weapon w ) : bool
e Character
w Shooter.Controls.Weapon
Résultat bool

CheckRange() public méthode

public CheckRange ( ) : bool
Résultat bool

Projectile() public méthode

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
Résultat System

Projectile() public méthode

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
Résultat System

Projectile() public méthode

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
Résultat System

UpdatePos() public méthode

public UpdatePos ( double timeElapsed, int tileSize ) : void
timeElapsed double
tileSize int
Résultat void

Property Details

distTraveled protected_oe property

protected double distTraveled
Résultat double

isRifleRound protected_oe property

protected bool isRifleRound
Résultat bool

playerShot protected_oe property

protected bool playerShot
Résultat bool

range protected_oe property

protected double range
Résultat double

velocity protected_oe property

protected double velocity
Résultat double