Beispiel #1
0
 public static TCommand Stand <TCommand>(this ISimpleMovementRules <TCommand> factory, double time)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.Stand(time)
     });
 }
Beispiel #2
0
        public void DefineKeyboardControl(IKeyboardController _pool, string controllerId)
        {
            var pool = Compatibility.Check <KeyboardController <MoveAndGripCommand> >(this, _pool);

            this.AddGripKeys(pool, controllerId);
            this.AddSimpleMovementKeys(pool, controllerId);
            pool.StopCommand = () => new MoveAndGripCommand {
                SimpleMovement = SimpleMovement.Stand(0.1)
            };
        }