Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Item():
- def __init__(self, item_name):
- self.name = item_name
- self.description = None
- self.item_actions = []
- def set_name(self, item_name):
- self.name = item_name
- def set_description(self, item_description):
- self.description = item_description
- def set_item_action(self, action):
- self.item_actions.append(action)
- def get_name(self):
- return self.name
- def get_description(self):
- return self.description
- def get_details_item(self):
- #for a in self.item_actions:
- print("\n The ", self.name, " is", self.description, " and can ", self.item_actions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement