brain_dog.cpp
来自「很好的windows驱动开发书记,基于WDM的,,可以很好的学习」· C++ 代码 · 共 36 行
CPP
36 行
#include "dog.h"
IE_START(Dog)
GOAL (Nap)
#if 0
IF (HearsNoise) GOTO (Investigate)
GOAL (Investigate)
IF (SeesHuman) GOTO (ConsiderAction)
IF (Done) GOTO (Nap)
GOAL (ConsiderAction)
IF (LikesHuman) GOTO (Follow)
IF (WaryOfHuman) GOTO (RunAway)
IF (HateHuman) GOTO (Attack)
GOAL (Follow)
IF (Close) GOSUB (Beg)
IF (Tired) GOSUB (Rest
IF (HumanGone) GOTO (GoHome)
GOAL (Rest)
IF (Done) RETURN
GOAL (Beg)
IF (GetFood) GOSUB (Eat)
GOAL (Eat)
GOAL (GoHome)
#endif
IE_END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?