Design Pattern Examples
Overview of object-oriented design patterns
IStateBehavior Interface Reference

Represents a class that implements one state of the state machine. More...

Inheritance diagram for IStateBehavior:
Inheritance graph
Collaboration diagram for IStateBehavior:
Collaboration graph

Public Member Functions

CurrentState GoNext (IStateContext context)
 

Detailed Description

Represents a class that implements one state of the state machine.

The context calls each state through this interface.

Technically, the StateContext_Class knows about the actual state classes because it has to instantiate them but this interface makes the code for calling the state classes much simpler.

Definition at line 97 of file State_Class.cs.

Member Function Documentation

◆ GoNext()


The documentation for this interface was generated from the following file: