public void _KillWallaby(rugby_sim.Wallaby target, int executionFrequency = 1) { target._isAlive = false; _WallabyEnvironment.Remove(target); _Unregister(this, target, target._executionFrequency); _WallabyAgents.Remove(target.ID); }
public void Tackle(rugby_sim.Wallaby nearestWallaby) { { System.Console.WriteLine("Gotcha!!");; nearestWallaby.Hit() ; } return; }
public rugby_sim.Wallaby _SpawnWallaby(double xcor = 0, double ycor = 0, int freq = 1) { var id = System.Guid.NewGuid(); var agent = new rugby_sim.Wallaby(id, this, _Register, _Unregister, _WallabyEnvironment, default(int) , xcor, ycor, freq); _WallabyAgents.Add(id, agent); return(agent); }