intficpy.verb module

class intficpy.verb.AboutVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the current score

syntax = [['about']]
word = 'about'
class intficpy.verb.AskVerb

Bases: intficpy.verb.IndirectObjectVerb

getImpDobj(game)

Get the implicit direct object The creator should overwrite this if planning to use implicit objects View the ask verb for an example

verbFunc(game, dobj, iobj, skip=False)

Ask an Actor about a Thing

dtype = 'Actor'
impDobj = True
iscope = 'knows'
list_word = 'ask about'
preposition = ['about']
syntax = [['ask', '<dobj>', 'about', '<iobj>']]
word = 'ask'
class intficpy.verb.BreakVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

break a Thing

dscope = 'near'
syntax = [['break', '<dobj>']]
word = 'break'
class intficpy.verb.BuyFromVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Buy something from a person

dscope = 'knows'
iscope = 'room'
itype = 'Actor'
list_word = 'buy from'
preposition = ['from']
synonym = ['purchase']
syntax = [['buy', '<dobj>', 'from', '<iobj>'], ['purchase', '<dobj>', 'from', '<iobj>']]
word = 'buy'
class intficpy.verb.BuyVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj)

Redirect to buy from

dscope = 'knows'
synonyms = ['purchase']
syntax = [['buy', '<dobj>'], ['purchase', '<dobj>']]
word = 'buy'
class intficpy.verb.ClimbDownFromVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Climb down from a Surface you currently occupy Will be extended once stairs/ladders/up direction/down direction are implemented

dobj_direction = 'd'
dscope = 'room'
list_word = 'climb down from'
preposition = ['off', 'down', 'from']
synonyms = ['get']
syntax = [['climb', 'off', '<dobj>'], ['get', 'off', '<dobj>'], ['climb', 'down', 'from', '<dobj>'], ['get', 'down', 'from', '<dobj>'], ['climb', 'down', '<dobj>']]
word = 'climb'
class intficpy.verb.ClimbDownVerb

Bases: intficpy.verb.Verb

verbFunc(game, skip=False)

Climb down from a Surface you currently occupy

list_word = 'climb down'
preposition = ['off', 'down']
synonyms = ['get']
syntax = [['climb', 'off'], ['get', 'off'], ['climb', 'down'], ['get', 'down']]
word = 'climb'
class intficpy.verb.ClimbInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Climb in a Container where one of more of can_contain_standing_player/can_contain_sitting_player/can_contain_lying_player is True

dscope = 'room'
list_word = 'climb in'
preposition = ['in', 'into']
synonyms = ['get', 'enter', 'go']
syntax = [['climb', 'in', '<dobj>'], ['get', 'in', '<dobj>'], ['climb', 'into', '<dobj>'], ['get', 'into', '<dobj>'], ['enter', '<dobj>'], ['go', 'in', '<dobj>'], ['go', 'into', '<dobj>']]
word = 'climb'
class intficpy.verb.ClimbOnVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Climb on a Surface where one of more of can_contain_standing_player/ can_contain_sitting_player/can_contain_lying_player is True

dobj_direction = 'u'
dscope = 'room'
dtype = 'Surface'
list_word = 'climb on'
preposition = ['on', 'up']
synonyms = ['get']
syntax = [['climb', 'on', '<dobj>'], ['get', 'on', '<dobj>'], ['climb', '<dobj>'], ['climb', 'up', '<dobj>']]
word = 'climb'
class intficpy.verb.ClimbOutOfVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Climb down from a Surface you currently occupy Will be extended once stairs/ladders/up direction/down direction are implemented

dscope = 'room'
list_word = 'climb out of'
preposition = ['out', 'of']
synonyms = ['get', 'exit']
syntax = [['climb', 'out', 'of', '<dobj>'], ['get', 'out', 'of', '<dobj>'], ['exit', '<dobj>']]
word = 'climb'
class intficpy.verb.ClimbOutVerb

Bases: intficpy.verb.Verb

verbFunc(game, skip=True)

Climb out of a Container you currently occupy

list_word = 'climb out'
preposition = ['out']
synonyms = ['get']
syntax = [['climb', 'out'], ['get', 'out']]
word = 'climb'
class intficpy.verb.ClimbUpVerb

Bases: intficpy.verb.Verb

verbFunc(game, skip=False)

Climb up to the room above

preposition = ['up']
syntax = [['climb', 'up'], ['climb']]
word = 'climb'
class intficpy.verb.CloseVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Open a Thing with an open property

dscope = 'near'
synonyms = ['shut']
syntax = [['close', '<dobj>'], ['shut', '<dobj>']]
word = 'close'
class intficpy.verb.DirectObjectVerb

Bases: intficpy.verb.Verb

verbFunc(game, dobj, skip=False)

Base verb function for verbs with a direct object

Checks for a verbFunc override on the direct object, and evaluates it if found. Returns immediately if the override returns True. Checks if the direct object as a cannot_interract_msg specified. Adds the text to the turn and returns if found.

API: Subclasses should generally return True on success, and False on failure.

Dobj/Iobj overrides (methods on the dobj/iobj in the form wordVerbDobj or wordVerbIobj) should return False to tell the core verbFunc to finish evaluating after perfroming the override func, and True to have the verbFunc return True (success) immediately after evaluating the override. There is currently no way to override the verbFunc to evaluate the override and return False (failure).

skip parameter specifies whether or not to check for verb overrides on the direct object. The parser does not use skip, but skip=True may be useful for certain uses of the verbFunc by game authors

hasDobj = True
syntax = [[None, '<dobj>']]
word = None
class intficpy.verb.DoffVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Take off a piece of clothing

dscope = 'wearing'
preposition = ['off']
synonyms = ['doff', 'remove']
syntax = [['take', 'off', '<dobj>'], ['take', '<dobj>', 'off'], ['doff', '<dobj>'], ['remove', '<dobj>']]
word = 'take'
class intficpy.verb.DrinkVerb

Bases: intficpy.verb.Verb

verbFunc(game, dobj, skip=False)

Drink a Liquid

dscope = 'invflex'
keywords = ['of']
preposition = ['out', 'from']
syntax = [['drink', '<dobj>'], ['drink', 'from', '<dobj>'], ['drink', 'out', 'of', '<dobj>']]
word = 'drink'
class intficpy.verb.DropAllVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Drop everything in the inventory

dscope = 'room'
keywords = ['all', 'everything']
syntax = [['drop', 'all'], ['drop', 'everything']]
word = 'drop'
class intficpy.verb.DropVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Drop a Thing from the contains

dscope = 'inv'
preposition = ['down']
synonyms = ['put']
syntax = [['drop', '<dobj>'], ['put', 'down', '<dobj>'], ['put', '<dobj>', 'down']]
word = 'drop'
class intficpy.verb.EnterVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

syntax = [['enter']]
word = 'enter'
class intficpy.verb.ExamineVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Examine a Thing

dscope = 'near'
far_dobj = True
preposition = ['at']
synonyms = ['x', 'look']
syntax = [['examine', '<dobj>'], ['x', '<dobj>'], ['look', 'at', '<dobj>'], ['look', '<dobj>']]
word = 'examine'
class intficpy.verb.ExitVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Climb out of a Container you currently occupy

syntax = [['exit']]
word = 'exit'
class intficpy.verb.ExtinguishVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Extinguish a LightSource

dscope = 'near'
dtype = 'LightSource'
preposition = ['out']
synonyms = ['put']
syntax = [['extinguish', '<dobj>'], ['put', 'out', '<dobj>'], ['put', '<dobj>', 'out']]
word = 'extinguish'
class intficpy.verb.FillFromVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Pour a Liquid from one Container to another

dscope = 'invflex'
iscope = 'near'
preposition = ['from', 'in', 'with']
syntax = [['fill', '<dobj>', 'from', '<iobj>'], ['fill', '<dobj>', 'in', '<iobj>'], ['fill', '<dobj>', 'with', '<iobj>']]
word = 'fill'
class intficpy.verb.FullScoreVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the current score

allow_in_sequence = True
synonyms = ['full']
syntax = [['fullscore'], ['full', 'score']]
word = 'fullscore'
class intficpy.verb.GetAllVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Take all obvious invItems in the current room

dscope = 'room'
keywords = ['all', 'everything']
list_word = 'get all'
synonyms = ['take']
syntax = [['get', 'all'], ['take', 'all'], ['get', 'everything'], ['take', 'everything']]
word = 'get'
class intficpy.verb.GetVerb

Bases: intficpy.verb.DirectObjectVerb

revealUnderSpace(game, dobj)

When an UnderSpace is taken, move its contents out into the main Room, and describe them.

verbFunc(game, dobj, skip=False)

Take a Thing from the Room.

dscope = 'roomflex'
preposition = ['up']
synonyms = ['take', 'pick']
syntax = [['get', '<dobj>'], ['take', '<dobj>'], ['pick', 'up', '<dobj>'], ['pick', '<dobj>', 'up']]
word = 'get'
class intficpy.verb.GiveVerb

Bases: intficpy.verb.IndirectObjectVerb

getImpDobj(game)

Get the implicit direct object The creator should overwrite this if planning to use implicit objects View the ask verb for an example

verbFunc(game, dobj, iobj, skip=False)

Give an Actor a Thing

dtype = 'Actor'
impDobj = True
iscope = 'invflex'
list_word = 'give to'
preposition = ['to']
syntax = [['give', '<iobj>', 'to', '<dobj>'], ['give', '<dobj>', '<iobj>']]
word = 'give'
class intficpy.verb.GoThroughVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Base verb function for verbs with a direct object

Checks for a verbFunc override on the direct object, and evaluates it if found. Returns immediately if the override returns True. Checks if the direct object as a cannot_interract_msg specified. Adds the text to the turn and returns if found.

API: Subclasses should generally return True on success, and False on failure.

Dobj/Iobj overrides (methods on the dobj/iobj in the form wordVerbDobj or wordVerbIobj) should return False to tell the core verbFunc to finish evaluating after perfroming the override func, and True to have the verbFunc return True (success) immediately after evaluating the override. There is currently no way to override the verbFunc to evaluate the override and return False (failure).

skip parameter specifies whether or not to check for verb overrides on the direct object. The parser does not use skip, but skip=True may be useful for certain uses of the verbFunc by game authors

dscope = 'room'
list_word = 'go through'
preposition = ['through']
syntax = [['go', 'through', '<dobj>']]
word = 'go'
class intficpy.verb.GoVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj)

Base verb function for verbs with a direct object

Checks for a verbFunc override on the direct object, and evaluates it if found. Returns immediately if the override returns True. Checks if the direct object as a cannot_interract_msg specified. Adds the text to the turn and returns if found.

API: Subclasses should generally return True on success, and False on failure.

Dobj/Iobj overrides (methods on the dobj/iobj in the form wordVerbDobj or wordVerbIobj) should return False to tell the core verbFunc to finish evaluating after perfroming the override func, and True to have the verbFunc return True (success) immediately after evaluating the override. There is currently no way to override the verbFunc to evaluate the override and return False (failure).

skip parameter specifies whether or not to check for verb overrides on the direct object. The parser does not use skip, but skip=True may be useful for certain uses of the verbFunc by game authors

dscope = 'direction'
syntax = [['go', '<dobj>']]
word = 'go'
class intficpy.verb.HelpVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

syntax = [['help']]
word = 'help'
class intficpy.verb.HelpVerbVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj)

View the current score

dtype = 'String'
hasStrDobj = True
list_word = 'verb help'
syntax = [['verb', 'help', '<dobj>']]
word = 'verb'
class intficpy.verb.HintVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the current score

syntax = [['hint']]
word = 'hint'
class intficpy.verb.IndirectObjectVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, iobj, skip=True)

Base verb function for verbs with a direct object and an indirect object

Checks for a verbFunc override on the direct and indirecte objects, and evaluates them if found. After attempting to run both possible overrides, returns True immediately if either override returns True. Checks if the direct object or indirect object has a cannot_interract_msg specified. Adds the text to the turn and returns if found.

API: Subclasses should generally return True on success, and False on failure.

Dobj/Iobj overrides (methods on the dobj/iobj in the form wordVerbDobj or wordVerbIobj) should return False to tell the core verbFunc to finish evaluating after perfroming the override func, and True to have the verbFunc return True (success) immediately after evaluating the override. There is currently no way to override the verbFunc to evaluate the override and return False (failure).

skip parameter specifies whether or not to check for verb overrides on the direct object. The parser does not use skip, but skip=True may be useful for certain uses of the verbFunc by game authors

hasIobj = True
preposition = ['with']
syntax = [[None, '<dobj>', 'with', '<iobj>']]
word = None
class intficpy.verb.InstructionsVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the current score

syntax = [['instructions']]
word = 'instructions'
class intficpy.verb.InvVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the player’s contains

allow_in_sequence = True
synonyms = ['i']
syntax = [['inventory'], ['i']]
word = 'inventory'
class intficpy.verb.JumpInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Jump in a Thing

dscope = 'room'
preposition = ['in', 'into']
syntax = [['jump', 'in', '<dobj>'], ['jump', 'into', '<dobj>']]
word = 'jump'
class intficpy.verb.JumpOnVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Jump on a Thing

dscope = 'room'
preposition = ['on', 'onto']
syntax = [['jump', 'on', '<dobj>'], ['jump', 'onto', '<dobj>']]
word = 'jump'
class intficpy.verb.JumpOverVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Jump over a Thing

dscope = 'room'
preposition = ['over', 'across']
syntax = [['jump', 'over', '<dobj>'], ['jump', 'across', '<dobj>']]
word = 'jump'
class intficpy.verb.JumpVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Jump in place

syntax = [['jump']]
word = 'jump'
class intficpy.verb.KickVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

kick a Thing

dscope = 'near'
syntax = [['kick', '<dobj>']]
word = 'kick'
class intficpy.verb.KillVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

kill a Thing

dscope = 'near'
syntax = [['kill', '<dobj>']]
word = 'kill'
class intficpy.verb.LeadDirVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Lead an Actor in a direction

dscope = 'room'
dtype = 'Actor'
iscope = 'direction'
syntax = [['lead', '<dobj>', '<iobj>']]
word = 'lead'
class intficpy.verb.LieDownVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

preposition = ['down']
synonyms = ['lay']
syntax = [['lie', 'down'], ['lay', 'down']]
word = 'lie'
class intficpy.verb.LieInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Lie on a Surface where can_contain_lying_player is True

dscope = 'room'
dtype = 'Container'
list_word = 'lie in'
preposition = ['down', 'in']
synonyms = ['lay']
syntax = [['lie', 'in', '<dobj>'], ['lie', 'down', 'in', '<dobj>'], ['lay', 'in', '<dobj>'], ['lay', 'down', 'in', '<dobj>']]
word = 'lie'
class intficpy.verb.LieOnVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Lie on a Surface where can_contain_lying_player is True

dscope = 'room'
dtype = 'Surface'
hasDobj = True
list_word = 'lie on'
preposition = ['down', 'on']
synonyms = ['lay']
syntax = [['lie', 'on', '<dobj>'], ['lie', 'down', 'on', '<dobj>'], ['lay', 'on', '<dobj>'], ['lay', 'down', 'on', '<dobj>']]
words = 'lie'
class intficpy.verb.LightVerb

Bases: intficpy.verb.Verb

verbFunc(game, dobj, skip=False)

Light a LightSource

dscope = 'near'
dtype = 'LightSource'
syntax = [['light', '<dobj>']]
word = 'light'
class intficpy.verb.LoadVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

allow_in_sequence = True
syntax = [['load']]
word = 'load'
class intficpy.verb.LockVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Lock a Door or Container with an lock Returns True when the function ends with dobj locked. Returns False on failure to lock, or when dobj has no lock.

dscope = 'near'
synonyms = ['bolt']
syntax = [['lock', '<dobj>'], ['bolt', '<dobj>']]
word = 'lock'
class intficpy.verb.LockWithVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Unlock a Door or Container with a lock Returns True when the function ends with dobj unlocked, or without a lock. Returns False on failure to unlock.

dscope = 'near'
iscope = 'invflex'
preposition = ['with', 'using']
synonyms = ['bolt']
syntax = [['lock', '<dobj>', 'using', '<iobj>'], ['lock', '<dobj>', 'with', '<iobj>'], ['bolt', '<dobj>', 'with', '<iobj>'], ['bolt', '<dobj>', 'using', '<iobj>']]
word = 'lock'
class intficpy.verb.LookInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Look inside a Thing

dscope = 'near'
dtype = 'Container'
list_word = 'look in'
preposition = ['in']
syntax = [['look', 'in', '<dobj>']]
word = 'look'
class intficpy.verb.LookThroughVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

look through a Thing

dscope = 'near'
dtype = 'Transparent'
preposition = ['through', 'out']
syntax = [['look', 'through', '<dobj>'], ['look', 'out', '<dobj>']]
word = 'look'
class intficpy.verb.LookUnderVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Look under a Thing

dscope = 'near'
dtype = 'UnderSpace'
list_word = 'look under'
preposition = ['under']
syntax = [['look', 'under', '<dobj>']]
word = 'look'
class intficpy.verb.LookVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Look around the current room

synonyms = ['l']
syntax = [['look'], ['l']]
word = 'look'
class intficpy.verb.OpenVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Open a Thing with an is_open attribute

dscope = 'near'
syntax = [['open', '<dobj>']]
word = 'open'
class intficpy.verb.PlayBackVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

syntax = [['playback']]
word = 'playback'
class intficpy.verb.PourIntoVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Pour a Liquid from one Container to another

dscope = 'invflex'
iscope = 'near'
preposition = ['in', 'into']
synonyms = ['dump']
syntax = [['pour', '<dobj>', 'into', '<iobj>'], ['pour', '<dobj>', 'in', '<iobj>'], ['dump', '<dobj>', 'into', '<iobj>'], ['dump', '<dobj>', 'in', '<iobj>']]
word = 'pour'
class intficpy.verb.PourOutVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Pour a Liquid out of a Container

dscope = 'invflex'
preposition = ['out']
synonyms = ['dump']
syntax = [['pour', '<dobj>'], ['pour', 'out', '<dobj>'], ['pour', '<dobj>', 'out'], ['dump', '<dobj>'], ['dump', 'out', '<dobj>'], ['dump', '<dobj>', 'out']]
word = 'pour'
class intficpy.verb.PressVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

press a Thing

dscope = 'near'
dtype = 'Pressable'
preposition = ['on']
synonyms = ['depress']
syntax = [['press', '<dobj>'], ['depress', '<dobj>'], ['press', 'on', '<dobj>']]
word = 'press'
class intficpy.verb.PushVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

push a Thing

dscope = 'near'
preposition = ['on']
syntax = [['push', '<dobj>'], ['push', 'on', '<dobj>']]
word = 'push'
class intficpy.verb.ReadVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

look through a Thing

dscope = 'near'
dtype = 'Readable'
hasDobj = True
syntax = [['read', '<dobj>']]
word = 'read'
class intficpy.verb.RecordOffVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

list_word = 'record off'
preposition = ['off']
synonyms = ['recording']
syntax = [['record', 'off'], ['recording', 'off']]
word = 'record'
class intficpy.verb.RecordOnVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

list_word = 'record on'
preposition = ['on']
synonyms = ['recording']
syntax = [['record', 'on'], ['recording', 'on']]
word = 'record'
class intficpy.verb.RemoveFromVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=True)

Remove a Thing from a Thing Mostly intended for implicit use within the inventory

dscope = 'near'
preposition = ['from']
syntax = [['remove', '<dobj>', 'from', '<iobj>']]
word = 'remove'
class intficpy.verb.SaveVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

allow_in_sequence = True
syntax = [['save']]
word = 'save'
class intficpy.verb.ScoreVerb

Bases: intficpy.verb.Verb

verbFunc(game)

View the current score

allow_in_sequence = True
syntax = [['score']]
word = 'score'
class intficpy.verb.SellToVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Sell something to a person

dscope = 'invflex'
iscope = 'room'
itype = 'Actor'
list_word = 'sell to'
preposition = ['to']
syntax = [['sell', '<dobj>', 'to', '<iobj>']]
word = 'sell'
class intficpy.verb.SellVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Redrirect to sell to

dscope = 'invflex'
syntax = [['sell', '<dobj>']]
word = 'sell'
class intficpy.verb.SetInVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Put a Thing in a Container

dscope = 'inv'
iscope = 'near'
itype = 'Container'
list_word = 'set in'
preposition = ['in']
synonyms = ['put', 'insert', 'place', 'drop']
syntax = [['put', '<dobj>', 'in', '<iobj>'], ['set', '<dobj>', 'in', '<iobj>'], ['insert', '<dobj>', 'into', '<iobj>'], ['place', '<dobj>', 'in', '<iobj>'], ['drop', '<dobj>', 'in', '<iobj>']]
word = 'set'
class intficpy.verb.SetOnVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Put a Thing on a Surface

dscope = 'inv'
iscope = 'room'
itype = 'Surface'
list_word = 'set on'
preposition = ['on']
synonyms = ['put', 'drop', 'place']
syntax = [['put', '<dobj>', 'on', '<iobj>'], ['set', '<dobj>', 'on', '<iobj>'], ['place', '<dobj>', 'on', '<iobj>'], ['drop', '<dobj>', 'on', '<iobj>']]
word = 'set'
class intficpy.verb.SetUnderVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Put a Thing under an UnderSpace

dscope = 'inv'
iscope = 'room'
itype = 'UnderSpace'
list_word = 'set under'
preposition = ['under']
synonyms = ['put', 'place']
syntax = [['put', '<dobj>', 'under', '<iobj>'], ['set', '<dobj>', 'under', '<iobj>'], ['place', '<dobj>', 'under', '<iobj>']]
word = 'set'
class intficpy.verb.ShowVerb

Bases: intficpy.verb.IndirectObjectVerb

getImpDobj(game)

Get the implicit direct object The creator should overwrite this if planning to use implicit objects View the ask verb for an example

verbFunc(game, dobj, iobj, skip=False)

Show an Actor a Thing

dtype = 'Actor'
impDobj = True
iscope = 'invflex'
list_word = 'show to'
preposition = ['to']
syntax = [['show', '<iobj>', 'to', '<dobj>'], ['show', '<dobj>', '<iobj>']]
word = 'show'
class intficpy.verb.SitDownVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

preposition = ['down']
syntax = [['sit', 'down'], ['sit']]
word = 'sit'
class intficpy.verb.SitInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Stand in a Container where can_contain_standing_player is True

dscope = 'room'
dtype = 'Container'
list_word = 'sit in'
preposition = ['down', 'in']
syntax = [['sit', 'in', '<dobj>'], ['sit', 'down', 'in', '<dobj>']]
word = 'sit'
class intficpy.verb.SitOnVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Sit on a Surface where can_contain_standing_player is True

dscope = 'room'
dtype = 'Surface'
hasDobj = True
list_word = 'sit on'
preposition = ['down', 'on']
syntax = [['sit', 'on', '<dobj>'], ['sit', 'down', 'on', '<dobj>']]
word = 'sit'
class intficpy.verb.StandInVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Sit on a Surface where can_contain_sitting_player is True

dscope = 'room'
dtype = 'Container'
list_word = 'stand in'
preposition = ['in']
syntax = [['stand', 'in', '<dobj>']]
word = 'stand'
class intficpy.verb.StandOnVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Stand on a Surface where can_contain_sitting_player is True

dscope = 'room'
dtype = 'Surface'
list_word = 'stand on'
preposition = ['on']
syntax = [['stand', 'on', '<dobj>']]
word = 'stand'
class intficpy.verb.StandUpVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

preposition = ['up']
synonyms = ['get']
syntax = [['stand', 'up'], ['stand'], ['get', 'up']]
word = 'stand'
class intficpy.verb.TalkToVerb

Bases: intficpy.verb.DirectObjectVerb

getImpDobj(game)

If no dobj is specified, try to guess the Actor

verbFunc(game, dobj, skip=False)

Talk to an Actor

dtype = 'Actor'
impDobj = True
list_word = 'talk to'
preposition = ['to', 'with']
synonyms = ['greet', 'say', 'hi', 'hello']
syntax = [['talk', 'to', '<dobj>'], ['talk', 'with', '<dobj>'], ['talk', '<dobj>'], ['greet', '<dobj>'], ['hi', '<dobj>'], ['hello', '<dobj>'], ['say', 'hi', '<dobj>'], ['say', 'hi', 'to', '<dobj>'], ['say', 'hello', '<dobj>'], ['say', 'hello', 'to', '<dobj>']]
word = 'talk'
class intficpy.verb.TellVerb

Bases: intficpy.verb.IndirectObjectVerb

getImpDobj(game)

Get the implicit direct object The creator should overwrite this if planning to use implicit objects View the ask verb for an example

verbFunc(game, dobj, iobj, skip=False)

Tell an Actor about a Thing

dtype = 'Actor'
impDobj = True
iscope = 'knows'
list_word = 'tell about'
preposition = ['about']
syntax = [['tell', '<dobj>', 'about', '<iobj>']]
word = 'tell'
class intficpy.verb.UnlockVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Unlock a Door or Container with an lock Returns True when the function ends with dobj unlocked, or without a lock. Returns False on failure to unlock.

dscope = 'near'
synonyms = ['unbolt']
syntax = [['unlock', '<dobj>'], ['unbolt', '<dobj>']]
word = 'unlock'
class intficpy.verb.UnlockWithVerb

Bases: intficpy.verb.IndirectObjectVerb

verbFunc(game, dobj, iobj, skip=False)

Unlock a Door or Container with an lock Returns True when the function ends with dobj unlocked, or without a lock. Returns False on failure to unlock.

dscope = 'near'
iscope = 'invflex'
preposition = ['with', 'using']
synonyms = ['unbolt', 'open']
syntax = [['unlock', '<dobj>', 'using', '<iobj>'], ['unlock', '<dobj>', 'with', '<iobj>'], ['unbolt', '<dobj>', 'with', '<iobj>'], ['unbolt', '<dobj>', 'using', '<iobj>'], ['open', '<dobj>', 'using', '<iobj>'], ['open', '<dobj>', 'with', '<iobj>']]
word = 'unlock'
class intficpy.verb.UseVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Use a Thing

dscope = 'near'
syntax = [['use', '<dobj>']]
word = 'use'
class intficpy.verb.Verb

Bases: abc.ABC

Verb objects represent actions the player can take

static disambiguateActor(game, len0_msg, base_disambig_msg)

Disambiguate Actors. Excludes the Player. room - the room to search len0_msg - message to print in the case of no Actors base_disambig_msg - base message for disambiguation

getImpDobj(game)

Get the implicit direct object The creator should overwrite this if planning to use implicit objects View the ask verb for an example

getImpIobj(game)

“Get the implicit indirect object The creator should overwrite this if planning to use implicit objects

getImpTalkTo(game)

If no dobj is specified, try to guess the Actor

verbFunc(game, skip=False)

The default verb function

allow_in_sequence = False
dobj_direction = False
dscope = 'room'
dtype = None
far_dobj = False
far_iobj = False
hasDobj = False
hasIobj = False
hasStrDobj = False
hasStrIobj = False
impDobj = False
impIobj = False
iobj_direction = False
iscope = 'room'
itype = None
keywords = []
list_by_default = True
list_word = None
preposition = []
synonyms = []
syntax = [[None]]
word = None
class intficpy.verb.VerbsVerb

Bases: intficpy.verb.Verb

verbFunc(game)

The default verb function

syntax = [['verbs']]
word = 'verbs'
class intficpy.verb.WaitVerb

Bases: intficpy.verb.Verb

verbFunc(game)

Wait a turn

synonyms = ['z']
syntax = [['wait'], ['z']]
word = 'wait'
class intficpy.verb.WearVerb

Bases: intficpy.verb.DirectObjectVerb

verbFunc(game, dobj, skip=False)

Wear a piece of clothing

dscope = 'inv'
dtype = 'Clothing'
preposition = ['on']
synonyms = ['put', 'don']
syntax = [['put', 'on', '<dobj>'], ['put', '<dobj>', 'on'], ['wear', '<dobj>'], ['don', '<dobj>']]
word = 'wear'
intficpy.verb.get_base_verbset()