示例#1
0
 public static TCommand MovePathWithVelocity <TCommand>(this ISimpleMovementRules <TCommand> factory, double path, double velocity)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.MoveWithVelocity(path, velocity)
     });
 }
示例#2
0
 public static TCommand Move <TCommand>(this ISimpleMovementRules <TCommand> factory, double length)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.MoveWithVelocity(length, factory.LinearVelocityLimit)
     });
 }