Exemplo n.º 1
0
 public GoToFloorState(StateContext context) : base(context)
 {
     NextAction = new OpenFloorDoorState(context);
 }
Exemplo n.º 2
0
 public CloseDoorsState(StateContext context) : base(context)
 {
     NextAction = new GoToFloorState(context);
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public OpenFloorDoorState(StateContext context) : base(context)
 {
 }