|
Britbot
|
This method updates the previous location, the last directions and the fighting power of this enemy group. Definition at line 519 of file EnemyGroup.cs. {
//get the new direction of the last turn
Direction newDirection = Bot.Game.GetDirections(this.PrevLoc, this.GetLocation())[0];
//update previous location
PrevLoc = GetLocation();
//update directions
this._lastDirections.Enqueue(newDirection);
//check if we need to throw irrelevant stuff out
if (this._lastDirections.Count > Magic.EnemyLocationQueueSize)
{
this._lastDirections.Dequeue();
}
//update maximum fire power
this._lastMaxFightPower.Enqueue(this.MaxFightCount());
//check if we need to throw irrelevant stuff out
if (this._lastMaxFightPower.Count > Magic.EnemyLocationQueueSize)
{
this._lastMaxFightPower.Dequeue();
}
}
|
1.7.6.1