public MoveCapability Slide(Direction direction, int maxSteps) { moveCapabilities[nMoveCapabilities] = MoveCapability.Slide(direction, maxSteps); return(moveCapabilities[nMoveCapabilities++]); }
public MoveCapability Slide(Direction direction) { moveCapabilities[nMoveCapabilities] = MoveCapability.Slide(direction); return(moveCapabilities[nMoveCapabilities++]); }