Advertisement
Txemin

item

May 26th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. class Item():
  2. def __init__(self, item_name):
  3. self.name = item_name
  4. self.description = None
  5. self.item_actions = []
  6.  
  7. def set_name(self, item_name):
  8. self.name = item_name
  9. def set_description(self, item_description):
  10. self.description = item_description
  11. def set_item_action(self, action):
  12. self.item_actions.append(action)
  13. def get_name(self):
  14. return self.name
  15. def get_description(self):
  16. return self.description
  17. def get_details_item(self):
  18. #for a in self.item_actions:
  19. print("\n The ", self.name, " is", self.description, " and can ", self.item_actions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement