Format

Crossed(atom/movable/O)

When

Called when an object has overlapped this one through Move(). Directly setting the object’s loc or step_x/y vars does not result in a call to Crossed() or any other movement side-effects. The same goes for creation or deletion of an object at a location.

Args

O: the object that moved and is now overlapping.

Default action

none

obj/landmine
   Crossed(O)
      O << "You stepped on a land mine!"
      Explode()

See also