home · contact · privacy
Add command to let the AI decide player's next move.
[plomrogue] / src / server / ai.h
index 7e5a145fc1df71f6d6d194e1994843e8df81531a..9a50a3a86dfb298422888475f5912852e2e7b76f 100644 (file)
@@ -6,17 +6,15 @@
 #ifndef AI_H
 #define AI_H
 
-struct MapObj;
+struct Thing;
 
 
 
-/* Determine next non-player actor command / arguments by the actor's AI.
- *
- * The AI is pretty dumb so far. Actors basically try to move towards their
- * nearest neighbor in a straight line, easily getting stuck behind obstacles or
- * ending up in endless chase circles with each other.
+/* Determine next non-player actor command / arguments by the actor's AI. It's
+ * pretty dumb so far. Actors will try to move towards their path-wise nearest
+ * neighbor. If no one else is found in the neighborhood, they will simply wait.
  */
-extern void pretty_dumb_ai(struct MapObj * mo);
+extern void ai(struct Thing * t);