diff options
author | Sven Gothel <[email protected]> | 2022-03-30 12:26:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-03-30 12:26:44 +0200 |
commit | 44b6109ae508c7fd821665a3d17032fad168853c (patch) | |
tree | 9e56fdccefd3863cdfabb2aafec1e45bf4078fdf | |
parent | 0378b86525ecc6f88b017f002f0957e6d47a255c (diff) |
README: Hint to ghost_t 'AI' functionsv0.2.1
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -111,7 +111,9 @@ This current code queries a decision when reaching the center of every tile, i.e - detecting whether its just an alley to move forward, or - to make a decision on an intersection - looking ahead on all valid exits and comparing the distance. -Code for [selecting a new direction](../tree/src/ghost.cpp#n272). +Code sections of interest +- Selecting a new direction [ghost_t::set_next_dir()](../tree/src/ghost.cpp#n272). +- Selecting the target [ghost_t::set_next_target()](../tree/src/ghost.cpp#n138). Hence this code utilize a more current Puckman position, in case the original code has such a double look-ahead implemented using an older Puckman position. |