//Method to create a prey with Flee State as initial state public override Animal CreateAnimal(Random rand, AnimalMediator mediator) { AnimalState initialState = this.GetAnimalState(); Vec3 position = new Vec3(X_UPPER, X_LOWER, Y_UPPER, Y_LOWER, Z_UPPER, Z_LOWER, rand); Animal a = new Animal(initialState, this._animalParameters.MaxSpeed, this._animalParameters.VisionRadius, this._creationCounter, rand, mediator, position); this._creationCounter += 1; return(a); }
public abstract Animal CreateAnimal(Random rand, AnimalMediator mediator);