private void AddBeaconAccelerationTaskButton() { const int accelerationBeaconId = 3; const int decelerationBeaconId = 1; var followSlowly = new FollowingLineState(4); var followFaster = new FollowingLineState(6); var slowState = new UntilBeaconDecorator( followSlowly, accelerationBeaconId, null); var fastState = new UntilBeaconDecorator( followFaster, decelerationBeaconId, slowState); slowState.Follower = fastState; ButtonCommands.Add(new CommandButton("Task1", Brain, slowState)); }
public AtTheTableState(IBrain brain) : base(brain) { this.Enter(); NextState = new FollowingLineState(5.0, brain); }