ICT290 / src / scene / AIController / Goals / GoalAttackTarget.h
GoalAttackTarget.h
Raw
#pragma once

#include "../Vehicle.h"
#include "ArcanistGoalTypes.h"
#include "GoalComposite.h"

class GoalAttackTarget : public GoalComposite<Vehicle> {
   public:
    explicit GoalAttackTarget(Vehicle* Owner)
        : GoalComposite<Vehicle>(Owner, goal_attack_target) {}

    void Activate();

    int Process();

    void Terminate() { m_Status = completed; }

    void markOwnerWithGoal() { m_Owner->m_Goal = m_Type; }
};