text_game_maker.materials package¶
Submodules¶
-
class
text_game_maker.materials.materials.
Material
¶ Bases:
object
-
BREAD
= 'bread'¶
-
CARDBOARD
= 'cardboard'¶
-
CHEESE
= 'cheese'¶
-
CONCRETE
= 'concrete'¶
-
DIRT
= 'dirt'¶
-
GLASS
= 'glass'¶
-
LEATHER
= 'leather'¶
-
MEAT
= 'meat'¶
-
METAL
= 'metal'¶
-
MUD
= 'mud'¶
-
PAPER
= 'paper'¶
-
PLASTIC
= 'plastic'¶
-
SKIN
= 'skin'¶
-
STONE
= 'stone'¶
-
WATER
= 'water'¶
-
WOOD
= 'wood'¶
-
-
class
text_game_maker.materials.materials.
MaterialProperties
(material, **kwargs)¶ Bases:
object
Class representing all the properties of a specific material
-
__init__
(material, **kwargs)¶ x.__init__(…) initializes x; see help(type(x)) for signature
-
-
text_game_maker.materials.materials.
add_material
(material, **kwargs)¶ Define a new material type
Parameters: - material (str) – unique name to represent material type
- kwargs – all attributes of the MaterialProperties class can be set by name here
-
text_game_maker.materials.materials.
get_materials
()¶ Return a list of all material names
Returns: list of material names Return type: [str]
-
text_game_maker.materials.materials.
get_properties
(material)¶ Get a MaterialProperties object by material name
Parameters: material (str) – material name Returns: material properties Return type: text_game_maker.material.material.MaterialProperties