You could use a ModelSwarm protocol in AnAgent instead of including ModelSwarm.h
Doug Donalson wrote:
Has anyone ever
figured out how to get around the circular .h references? For
example ObserverSwarm.h references ModelSwarm.h which references AnAgent.h
which references ModelSwarm.h which causes an
error. Cheers,
D4 *********************************************************************
* Dr. Doug Donalson
Office: (805) 893-2962
* Ecology, Evolution,
Home: (805) 961-4447
* and Marine Biology
email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
* The most exciting phrase to hear in
science, the one that
* heralds new discoveries, is not "EUREKA"
(I have found it) but
* "That's funny ...?"
*
* Isaac Asimov
*
*********************************************************************
|