Skip to content

Does that mean I can't have a separate class per state? #49

Description

@stranger-games

Hi,

Thank you for the great code.

I want to make sure i understand correctly. In the sample code there're 4 states. Init, Play, Win, and Lose. So I can't have 4 classes one for each state instead only the main class passed to the StateMachine constructor can have the functions of the state implemented like this STATENAME_METHODNAME?

Thank you for advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions