A GenericStructure is as the name suggest, a generic object to create all kind of structures.
If you need an action to be done when a Player and/or a NPC touch the structure please have a look at
- pickable (bool) – Define if the structure can be picked-up by a Player or NPC.
- overlappable (bool) – Define if the structure can be overlapped by a Player or NPC.
- restorable (bool) – Define if the structure can be restored by the Board after a Player or NPC passed through. For example, you want a door or an activator structure (see GenericActionableStructure for that) to remain on the board after it’s been overlapped by a player. But you could also want to develop some kind of Space Invaders game were the protection block are overlappable but not restorable.
If you need a structure with a permission system please have a look at
GenericActionableStructure. This class has a permission system for activation.
Initialize self. See help(type(self)) for accurate signature.
Return the capability of moving of an item.
Return a string with the list of the attributes and their current value.
Print the model WITHOUT carriage return.
This represent the capacity for a
BoardItemto be overlapped by player or NPC.
This represent the capacity for a BoardItem to be picked-up by player or NPC.
This represent the capacity for an
BoardItem(in this case a GenericStructure item) to be restored by the board if the item is overlappable and has been overlapped by another
Make the structure overlappable or not.
Make the structure pickable or not.
Make the structure restorable or not.
Return the size of the Immovable Item.
Store the BoardItem position for self access.