C# Class FBLibrary.Core.BaseEntities.BaseBomb

Inheritance: DynamicEntity
Show file Open project: Noxalus/Final-Bomber Class Usage Examples

Public Properties

Property Type Description
PlayerId int
Timer System.TimeSpan

Protected Properties

Property Type Description
CollisionLayer ].bool[
HazardMap ].int[
MapSize Point
Power int

Public Methods

Method Description
ChangeSpeed ( float changing ) : void
Destroy ( ) : void
Initialize ( Point mapSize, bool collisionLayer, int hazardMap ) : void
Remove ( ) : void
ResetTimer ( ) : void
Update ( ) : void

Protected Methods

Method Description
BaseBomb ( int playerId, Point cellPosition, int power, System.TimeSpan timer, float playerSpeed ) : System
ComputeActionField ( int dangerType ) : void

Method Details

BaseBomb() protected method

protected BaseBomb ( int playerId, Point cellPosition, int power, System.TimeSpan timer, float playerSpeed ) : System
playerId int
cellPosition Point
power int
timer System.TimeSpan
playerSpeed float
return System

ChangeSpeed() public method

public ChangeSpeed ( float changing ) : void
changing float
return void

ComputeActionField() protected method

protected ComputeActionField ( int dangerType ) : void
dangerType int
return void

Destroy() public method

public Destroy ( ) : void
return void

Initialize() public method

public Initialize ( Point mapSize, bool collisionLayer, int hazardMap ) : void
mapSize Point
collisionLayer bool
hazardMap int
return void

Remove() public method

public Remove ( ) : void
return void

ResetTimer() public method

public ResetTimer ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

CollisionLayer protected property

protected bool[,] CollisionLayer
return ].bool[

HazardMap protected property

protected int[,] HazardMap
return ].int[

MapSize protected property

protected Point MapSize
return Point

PlayerId public property

public int PlayerId
return int

Power protected property

protected int Power
return int

Timer public property

public TimeSpan,System Timer
return System.TimeSpan