Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. class SceneComponent:
  2. def __init__(self, type, attributes):
  3. self.type = type
  4. self.attributes = attributes
  5.  
  6.  
  7. class SceneLocation(SceneComponent):
  8. def __init__(self, type="EMPTY", attributes=[]):
  9. SceneComponent.__init__(self, type, attributes)
  10.  
  11. def __str__(self):
  12. return "SceneLocation: type: %s, attributes: %s" % (self.type, self.attributes)
  13.  
  14.  
  15.  
  16. class SceneObject(SceneComponent):
  17. def __init__(self, type, attributes):
  18. SceneComponent.__init__(self, type, attributes)
  19.  
  20. def __str__(self):
  21. return "SceneObject: type: %s, attributes: %s" % (self.type, self.attributes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement