Example #1
0
 public GoToFloorState(StateContext context) : base(context)
 {
     NextAction = new OpenFloorDoorState(context);
 }
 public CloseDoorsState(StateContext context) : base(context)
 {
     NextAction = new GoToFloorState(context);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateBase"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public StateBase(StateContext context)
 {
     Context = context;
 }
Example #4
0
 public OpenFloorDoorState(StateContext context) : base(context)
 {
 }