home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / brain_dog.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-29  |  698 b   |  36 lines

  1. #include "dog.h"
  2.  
  3. IE_START(Dog)
  4.  
  5.     GOAL (Nap)
  6.  
  7. #if 0
  8.         IF (HearsNoise)        GOTO (Investigate)
  9.  
  10.     GOAL (Investigate)
  11.         IF (SeesHuman)         GOTO  (ConsiderAction)
  12.         IF (Done)             GOTO  (Nap)
  13.  
  14.     GOAL (ConsiderAction)
  15.         IF (LikesHuman)        GOTO  (Follow)
  16.         IF (WaryOfHuman)    GOTO  (RunAway)
  17.         IF (HateHuman)        GOTO  (Attack)
  18.  
  19.     GOAL (Follow)
  20.         IF (Close)             GOSUB (Beg)
  21.         IF (Tired)          GOSUB (Rest
  22.         IF (HumanGone)         GOTO  (GoHome)
  23.  
  24.     GOAL (Rest)
  25.         IF (Done)             RETURN
  26.  
  27.     GOAL (Beg)
  28.         IF (GetFood)         GOSUB (Eat)
  29.  
  30.     GOAL (Eat)
  31.  
  32.     GOAL (GoHome)
  33. #endif
  34.  
  35. IE_END
  36.