C# Class Schmup.ShotPool

Inheritance: LuxEngine.Scene
Mostra file Open project: Louis-Dureuil/maya-vs-the-world Class Usage Examples

Public Methods

Method Description
Check ( ) : void
Clear ( ) : void
Initialize ( ) : void
Print ( ) : void
Shoot ( float positionX, float positionY, float speedX, float speedY, float accelX, float accelY, bool copyPosition, bool copySpeed, bool copyAccel ) : void

Tire une balle, la fait rentrer en compte dans le monde pour les collisions

ShotPool ( LuxGame game, World world ) : System
ShotPool ( LuxGame game, World world, Shot shot, int shotNb, int maxShotNb, Sprite skin = null ) : System
ShotPool ( LuxGame game, World world, bool isAGoodShot, double invincibleTimeSec, int shotNb, int maxShotNb, int shotHitBox, int damage, Microsoft.Xna.Framework.Graphics.Texture2D bulletText, Sprite skin = null ) : System
Update ( GameTime gameTime ) : void

Private Methods

Method Description
activeShotsAdd ( Shot shot ) : void
activeShotsRemove ( Shot shot ) : void
shoot ( Shot shot, float positionX, float positionY, float speedX, float speedY, float accelX, float accelY, bool copyPosition, bool copySpeed, bool copyAccel ) : void

Method Details

Check() public method

public Check ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

Initialize() public method

public Initialize ( ) : void
return void

Print() public method

public Print ( ) : void
return void

Shoot() public method

Tire une balle, la fait rentrer en compte dans le monde pour les collisions
public Shoot ( float positionX, float positionY, float speedX, float speedY, float accelX, float accelY, bool copyPosition, bool copySpeed, bool copyAccel ) : void
positionX float
positionY float
speedX float
speedY float
accelX float
accelY float
copyPosition bool
copySpeed bool
copyAccel bool
return void

ShotPool() public method

public ShotPool ( LuxGame game, World world ) : System
game LuxEngine.LuxGame
world World
return System

ShotPool() public method

public ShotPool ( LuxGame game, World world, Shot shot, int shotNb, int maxShotNb, Sprite skin = null ) : System
game LuxEngine.LuxGame
world World
shot Shot
shotNb int
maxShotNb int
skin Sprite
return System

ShotPool() public method

public ShotPool ( LuxGame game, World world, bool isAGoodShot, double invincibleTimeSec, int shotNb, int maxShotNb, int shotHitBox, int damage, Microsoft.Xna.Framework.Graphics.Texture2D bulletText, Sprite skin = null ) : System
game LuxEngine.LuxGame
world World
isAGoodShot bool
invincibleTimeSec double
shotNb int
maxShotNb int
shotHitBox int
damage int
bulletText Microsoft.Xna.Framework.Graphics.Texture2D
skin Sprite
return System

Update() public method

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