undergoing a shift to change movement into another action that a peg can perform and giving pegs a list of actions order by priority

This commit is contained in:
2026-06-29 02:43:25 -04:00
parent f6c54e0730
commit ebdff1b200
16 changed files with 148 additions and 110 deletions
+12
View File
@@ -16,4 +16,16 @@ public partial class PegAction : Node2D
{
return null;
}
public virtual bool MeetsCriteria(Peg PEG)
{
return PEG._staminaRemaining >= _cost
&& _usesRemaining > 0
&& PEG._address.Y <= _range;
}
public virtual void Reset()
{
_usesRemaining = _usesMax;
}
}