home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / brain.h < prev    next >
Encoding:
Text File  |  2001-07-29  |  442 b   |  24 lines

  1. // call ie::getBrain(name) to get a brain
  2.  
  3. #define IE_START(name)\
  4.     ie->start(name);  // adds brain to the list
  5.  
  6. #define GOAL(name)\
  7.     ie->makeGoal(name); // startGoal ends previous goal
  8.  
  9. #define IF(cond)\
  10.     ie->makeRule(cond);
  11.  
  12. #define GOTO(goal)\
  13.     ie->addRuleGoto(goal);
  14.  
  15. #define GOSUB(goal)\
  16.     ie->addRuleGosub(goal);
  17.  
  18. #define RETURN\
  19.     ie->addRuleReturn(goal);
  20.  
  21. #define IE_END\
  22.     ie->end(); // ends last goal and brain
  23.  
  24.