pathfind: add a condition system

Signed-off-by: mkhropov <mkhropov@gmail.com>
Merge branch 'master' of https://github.com/mkhropov/Elem

Conflicts:
	creature/Creature.java