private MoveDirection getOppositeDirection() { MoveDirection curDir = getCurrentDirection(); curDir.SetOpposite(); return(curDir); }
private MoveDirection getDir() { if (getDirection == GetPrevious) { MoveDirection curDir = getCurrentDirection(); curDir.SetOpposite(); return(curDir); } else { return(getCurrentDirection()); } }
public MoveDirection GetNextDirection() { direction.SetOpposite(); return(direction); }