Move proc (movable atom)

Format
Move(NewLoc,Dir=0)

Returns
1 on success; 0 on failure.

When
Called to move the object. By default, client.Move calls this proc when players use direction keys. The automated movement functions (like walk) also call this proc. Directly setting the loc variable does not call this procedure.

Default action
First call src.loc.Exit. If that succeeds, call NewLoc.Enter. If that succeeds, set src.loc to NewLoc. Otherwise call src.Bump if there is a blockage. If dir is zero, re-orient the src to reflect the direction of motion; otherwise re-orient the src to the specified dir.