ai in caveman has been through three major versions.
the first version was just quick and dirty code to get things going. like
all code of this type, it quickly grew and evolved into an ugly mess.
the second version of the ai was a more traditional setstate/runstate
type affair. setstate selected one of about 14 or so AI states for an