From 3e50c8f35ab3a40231498109d7401e0097fb1dd1 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 5 Jan 2013 17:12:31 +0000 Subject: Add first tile in each cardinal direction. --- doc/interface.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/interface.rst b/doc/interface.rst index e7505a4..796fa4b 100644 --- a/doc/interface.rst +++ b/doc/interface.rst @@ -36,7 +36,7 @@ Your module should define a class called ``Tile``, with the following interface: .. method:: action(player, do) Called when the player does something inside the tile. You need to - interpret the action and carry it out. + interpret the action and carry it out. Tile ``e1`` has a simple example. :param player: the active :class:`~weatbag.Player` instance :param action: list of strings - the player's input, split up into words, @@ -46,7 +46,8 @@ Your module should define a class called ``Tile``, with the following interface: *Optional.* Called when the player tries to leave the square. To let them leave, return `True`, or to prevent them, print an explanation and return - `False`. If the method isn't found, the player can always leave. + `False`. If the method isn't found, the player can always leave. Tile + ``w1`` has a simple example. :param player: the active :class:`~weatbag.Player` instance :param direction: the direction the player is trying to leave, as a single -- cgit v1.3