Design Pattern Examples
Overview of object-oriented design patterns
State_Factory Class Reference

Class factory for generating the state class instances. More...

Collaboration diagram for State_Factory:
Collaboration graph

Static Public Member Functions

static IStateBehavior CreateState (CurrentState state)
 Create an instance of the specified state class.
 

Detailed Description

Class factory for generating the state class instances.

Definition at line 615 of file State_Class.cs.

Member Function Documentation

◆ CreateState()

static IStateBehavior CreateState ( CurrentState  state)
inlinestatic

Create an instance of the specified state class.

Parameters
stateA value from the CurrentState enumeration indicating state for which to generate a class instance.
Returns
Returns an IStateBehavior instance for the specified state.

Definition at line 623 of file State_Class.cs.

Referenced by StateContext_Class._SetNextState().


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