pyherc icon indicating copy to clipboard operation
pyherc copied to clipboard

ai fsm

Open tuturto opened this issue 10 years ago • 0 comments

add ai fsm (finite state machine) language:

(ai-fsm Skeleton
  (patrol [model actions]
    ...
    (when (enemy-close? self) (transition-to attack {})))
  (attack [model actions rng]
    ...
    (transition-to patrol {}))))

Expands to class Skeleton with act method and respective methods for handling different states.

tuturto avatar Aug 10 '15 15:08 tuturto