public void _KillAllBlack(rugby_sim.AllBlack target, int executionFrequency = 1) { target._isAlive = false; _AllBlackEnvironment.Remove(target); _Unregister(this, target, target._executionFrequency); _AllBlackAgents.Remove(target.ID); }
public rugby_sim.AllBlack _SpawnAllBlack(double xcor = 0, double ycor = 0, int freq = 1) { var id = System.Guid.NewGuid(); var agent = new rugby_sim.AllBlack(id, this, _Register, _Unregister, _AllBlackEnvironment, default(double) , xcor, ycor, freq); _AllBlackAgents.Add(id, agent); return(agent); }