public MoveCmd ReadMovecd() { string cmdin = _ireadin.Readin(); string[] cmdArr = cmdin.Split(' '); return(new MoveCmd(OfficeFloor.GetMoveto(cmdArr[0]), int.Parse(cmdArr[1]))); }
public void Movetowards(Moveto movetoward, int numSteps) { Coord movetowards = OfficeFloor.Movetowards(movetoward); for (int i = 0; i < numSteps; i++) { CurrentPos = new Coord(_currentPos.XPos + movetowards.XPos, _currentPos.YPos + movetowards.YPos); } }