Exemple #1
0
    //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);
    }
Exemple #2
0
 public abstract Animal CreateAnimal(Random rand, AnimalMediator mediator);