namespace TowerDefense.Agents
|
{
|
/// <summary>
|
/// An implementation of Agent that will attack
|
/// any Towers that block its path
|
/// </summary>
|
public class AttackingAgent : Agent
|
{
|
public override void Initialize()
|
{
|
base.Initialize();
|
}
|
|
/// <summary>
|
/// Unsubscribes from tracked towers removed event
|
/// and disables the attached attack affector
|
/// </summary>
|
public override void Remove()
|
{
|
base.Remove();
|
}
|
|
/// <summary>
|
/// Peforms the relevant path update for the states <see cref="Agent.State.OnCompletePath"/>,
|
/// <see cref="Agent.State.OnPartialPath"/> and <see cref="Agent.State.Attacking"/>
|
/// </summary>
|
protected override void PathUpdate()
|
{
|
|
}
|
|
/// <summary>
|
/// Change to <see cref="Agent.State.OnCompletePath" /> when path is no longer blocked or to
|
/// <see cref="Agent.State.Attacking" /> when the agent reaches <see cref="AttackingAgent.m_TargetTower" />
|
/// </summary>
|
protected override void OnPartialPathUpdate()
|
{
|
|
}
|
}
|
}
|