intficpy.ifp_game module¶
-
class
intficpy.ifp_game.
GameInfo
¶ Bases:
object
-
printAbout
(game)¶
-
printHelp
(game)¶
-
printInstructions
(game)¶
-
printVerbs
(game)¶
-
setInfo
(title, author)¶
-
-
class
intficpy.ifp_game.
IFPGame
(app, main='__main__')¶ Bases:
object
-
addEvent
(name, priority, text=None, style=None)¶ Add an event to the current turn
Raises ValueError if an event of the specified name is already defined for this turn
-
addText
(text)¶ Shortcut to add text to the turn event
-
addTextToEvent
(name, text)¶ Add text to an event in the current turn
Raises KeyError if the specified event name is not defined for this turn
-
addVerb
(verb)¶
-
static
gameOpening
(game)¶
-
getCommandDown
()¶ Move forward by 1 through the list of previous commands Analogous to pressing the Down key in most terminals
-
getCommandUp
()¶ Move backward by 1 through the list of previous commands Analogous to pressing the Up key in most terminals
-
initGame
()¶
-
recordOff
()¶
-
recordOn
(f)¶ Try opening the specified file for recording, creating it if it doesn’t exist.
-
runTurnEvents
()¶
-
setPlayer
(player)¶
-
turnMain
(input_string)¶ Sends user input to the parser each turn Runs daemons Runs turn events Takes argument input_string, the cleaned user input string
-