From ead0301daaa6f07d9fc740050019bf204543f0ea Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Thu, 10 Jan 2013 16:45:18 +0000 Subject: Allow custom message when player attempts to move to nonexistent tile. Closes gh-7 --- doc/interface.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/interface.rst') diff --git a/doc/interface.rst b/doc/interface.rst index 796fa4b..dd960b4 100644 --- a/doc/interface.rst +++ b/doc/interface.rst @@ -52,3 +52,9 @@ Your module should define a class called ``Tile``, with the following interface: :param player: the active :class:`~weatbag.Player` instance :param direction: the direction the player is trying to leave, as a single lowercase character, n/e/s/w + + .. attribute:: no_path_msg + + *Optional.* The message to display if the player attempts to leave in a + direction where there is no tile. The default message says "The undergrowth + in that direction is impassable. You turn back." -- cgit v1.3