13 lines
319 B
C++
13 lines
319 B
C++
#pragma once
|
|
#include "PopulationBreedingStrategy.h"
|
|
|
|
class NeutralEvolutionBreedingStrategy : public PopulationBreedingStrategy {
|
|
float birthRate;
|
|
float deathRate;
|
|
public:
|
|
void setBirthRate(float b) {birthRate = b;}
|
|
void setDeathRate(float d) {deathRate = d;}
|
|
|
|
virtual void breed(Population* pop);
|
|
};
|