1 /* 2 * cBirthGlobalHandler.h 3 * Avida 4 * 5 * Created by David Bryson on 4/1/09. 6 * Copyright 2009-2011 Michigan State University. All rights reserved. 7 * 8 * 9 * This file is part of Avida. 10 * 11 * Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License 12 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 13 * 14 * Avida is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License along with Avida. 18 * If not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 22 #ifndef cBirthGlobalHandler_h 23 #define cBirthGlobalHandler_h 24 25 #ifndef cBirthEntry_h 26 #include "cBirthEntry.h" 27 #endif 28 #ifndef cBirthSelectionHandler_h 29 #include "cBirthSelectionHandler.h" 30 #endif 31 32 class cBirthChamber; 33 34 35 class cBirthGlobalHandler : public cBirthSelectionHandler 36 { 37 private: 38 cBirthChamber* m_bc; 39 cBirthEntry m_entry; 40 41 42 public: cBirthGlobalHandler(cBirthChamber * bc)43 cBirthGlobalHandler(cBirthChamber* bc) : m_bc(bc) { ; } 44 ~cBirthGlobalHandler(); 45 46 cBirthEntry* SelectOffspring(cAvidaContext& ctx, const Genome& offspring, cOrganism* parent); 47 }; 48 49 #endif 50