C# Class FBClient.Core.Entities.Bomb

Inheritance: FBLibrary.Core.BaseEntities.BaseBomb
Show file Open project: Noxalus/Final-Bomber Class Usage Examples

Public Methods

Method Description
Bomb ( int playerId, Point cellPosition, int pow, System.TimeSpan timer, float playerSpeed ) : System
ChangeDirection ( LookDirection lD, int playerId ) : void
Destroy ( ) : void
Draw ( GameTime gameTime, Camera2D camera ) : void
Remove ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
ComputeExplosionSpriteDirections ( Point cell ) : ExplosionDirection
MoreBottomSide ( ) : bool
MoreLeftSide ( ) : bool
MoreRightSide ( ) : bool
MoreTopSide ( ) : bool
WallAt ( Point cell ) : bool

Method Details

Bomb() public method

public Bomb ( int playerId, Point cellPosition, int pow, System.TimeSpan timer, float playerSpeed ) : System
playerId int
cellPosition Point
pow int
timer System.TimeSpan
playerSpeed float
return System

ChangeDirection() public method

public ChangeDirection ( LookDirection lD, int playerId ) : void
lD LookDirection
playerId int
return void

Destroy() public method

public Destroy ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime, Camera2D camera ) : void
gameTime Microsoft.Xna.Framework.GameTime
camera Camera2D
return void

Remove() public method

public Remove ( ) : void
return void

Update() public method

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