Пример #1
0
 public IAction chooseAction(IGame game) {
   if (game.player().hunger() == Hunger.FAINTING) return Actions.Pray();
   else return null;
 }
Пример #2
0
 public IAction chooseAction(IGame game) {
   next = next % smallCircle.length;
   return Actions.Move(smallCircle[next++]);
 }