#include "stdafx.h"
#include "UnitMoveBehavior.h"

const UnitMoveBehavior::TerminationMode UnitMoveBehavior::NoPathFound;

UnitMoveBehavior::UnitMoveBehavior(const Process* parent, unsigned int initialPriority, BWAPI::Unit* unit,
                                   BWAPI::Position destination, const MoveOptions& moveOptions)
  : UnitBehavior(parent, initialPriority, unit)
  , Behavior(parent, initialPriority)
  , FSM(parent)
  , Process(parent)
  , m_destination(destination)
  , m_destinationTile(destination)
  , m_moveOptions(moveOptions)
  , m_noPathFoundEvent(*this)
{
  assert(!unit->getType().isBuilding());
}

