SupaLidlGame/State/NPC/Doc/DocLanceState.cs

53 lines
971 B
C#
Raw Normal View History

2023-07-23 23:39:20 -07:00
using Godot;
namespace SupaLidlGame.State.NPC.Doc;
public partial class DocLanceState : DocAttackState
{
[Export]
public float DashSpeed { get; set; } = 212;
[Export]
public DocExitState ExitState { get; set; }
public override DocChooseAttackState ChooseAttackState
{
get => null;
set { }
}
public override PackedScene Projectile
{
get => null;
set { }
}
public override double AttackDuration { get; set; }
public override double Duration { get; set; }
protected Vector2 _dashDirection;
protected double _dashTime;
protected float _oldFriction = 0;
public override NPCState Enter(IState<NPCState> previousState)
{
var state = base.Enter(previousState);
_doc.ShouldMove = true;
return state;
}
protected override void Attack()
{
}
public override NPCState Process(double delta)
{
return null;
}
}