Skip to content

Instantly share code, notes, and snippets.

@mikeminutillo
Created December 17, 2010 09:52
Show Gist options
  • Save mikeminutillo/744725 to your computer and use it in GitHub Desktop.
Save mikeminutillo/744725 to your computer and use it in GitHub Desktop.
The core of my Engineer Samurai. Need to store self as internal state so that I can clean it up a bit
if (EnemiesOf(self).Any())
if (!IsConfident(self) && CanMove(self)) Move(self, Fleeing);
else Fight(EnemiesOf(self));
else if (IsInjured(self)) Heal();
else if (IsBuffed(self) && CanMove(self)) Move(self, Hunting);
else Buff();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment