GenericActionableStructure¶
-
class
gamelib.Structures.GenericActionableStructure(**kwargs)¶ A GenericActionableStructure is the combination of a
GenericStructureand anActionable. It is only a helper combination.Please see the documentation for
GenericStructureandActionablefor more information.-
__init__(**kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(**kwargs)Initialize self. activate()This function is calling the action function with the action_parameters. can_move()Return the capability of moving of an item. debug_info()Return a string with the list of the attributes and their current value. display()Print the model WITHOUT carriage return. overlappable()This represent the capacity for a BoardItemto be overlapped by player or NPC.pickable()This represent the capacity for a BoardItem to be picked-up by player or NPC. restorable()This represent the capacity for an ImmovableBoardItem(in this case a GenericStructure item) to be restored by the board if the item is overlappable and has been overlapped by anotherMovableitem.set_overlappable(val)Make the structure overlappable or not. set_pickable(val)Make the structure pickable or not. set_restorable(val)Make the structure restorable or not. size()Return the size of the Immovable Item. store_position(row, column)Store the BoardItem position for self access. -