Hi,
What if the player has the option of attacking with a sword or bow based on the carrying inventory?
Should we have one attacking state (and one targeting state) with if else statements that control what should be done based on the carrying inventory (if hasSword do this, if hasBow do that)?
Or should we have multiple attacking states (AttackingSword, AttackingBow) with multiple corresponding targeting states (TargetingWithSword, TargetingWithBow)?
And which class (base state, state, player state machine…) should have a reference to the player inventory class?
Thank you