1 /* 2 * cBioGroupListener.h 3 * Avida 4 * 5 * Created by David Bryson on 5/26/10. 6 * Copyright 2010-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 cBioGroupListener_h 23 #define cBioGroupListener_h 24 25 enum eBGEventType { 26 BG_EVENT_ADD_THRESHOLD, 27 BG_EVENT_REMOVE_THRESHOLD 28 }; 29 30 class cBioGroup; 31 class cBioUnit; 32 33 class cBioGroupListener 34 { 35 public: 36 virtual ~cBioGroupListener() = 0; 37 38 virtual void NotifyBGEvent(cBioGroup* bg, eBGEventType type, cBioUnit* bu) = 0; 39 }; 40 41 #endif 42