aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-03-30 12:26:44 +0200
committerSven Gothel <[email protected]>2022-03-30 12:26:44 +0200
commit44b6109ae508c7fd821665a3d17032fad168853c (patch)
tree9e56fdccefd3863cdfabb2aafec1e45bf4078fdf
parent0378b86525ecc6f88b017f002f0957e6d47a255c (diff)
README: Hint to ghost_t 'AI' functionsv0.2.1
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6274e0d..2f05b1e 100644
--- a/README.md
+++ b/README.md
@@ -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.