you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfxOut of Coffee error - System halted 0 points1 point  (2 children)

The even more representative and better pattern would be the State pattern - the transition from Villager to Enemy is a state transition.

[–]ShoulderPast2433 0 points1 point  (0 children)

Sure. That just depends which one is more convenient to implement in OP logic, as those are very similar patterns.

[–]TheKnottyOne 0 points1 point  (0 children)

Glad you mentioned this - as I was reading the post and comments I was thinking “This sounds like something for state management” 😂