Advertisement
kenadams53

FinshedItem.py

Aug 15th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class Item():
  2.  
  3. def __init__(self, item_name):
  4. self.name = item_name
  5. self.description = None
  6.  
  7.  
  8. def set_name(self, item_name):
  9. self.name = item_name
  10.  
  11. def get_name(self):
  12. return self.name
  13.  
  14. def set_description(self, item_description):
  15. self.description = item_description
  16.  
  17.  
  18. def get_description(self):
  19. return self.description
  20.  
  21. def describe(self):
  22. print("The [" + self.name + "] is here - " + self.description)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement