use "../Generic/Generic.act2g" as actionspec.
use Hydralisk as knowledge.
use Modules.Attack as module.
use Modules.Explore as module.
use Modules.Defend as module.
order = linear.

module Hydralisk {
	if goal(morphing(Thing)) then morph(Thing).
	
	% Determining which module to run
	if goal(task('attack', _)) then Attack.
	if goal(task('explore', _)) then Explore.
	if goal(task('defend', (X1, Y1, _))) then Defend(X1, Y1).
}
