diff gamelib/tiles.py @ 505:3ed6c011106d

Switch to classmethod decorators.
author Simon Cross <hodgestar@gmail.com>
date Thu, 26 Nov 2009 22:34:58 +0000
parents e3408c803b12
children 11c4cebfe4c5
line wrap: on
line diff
--- a/gamelib/tiles.py	Thu Nov 26 22:28:22 2009 +0000
+++ b/gamelib/tiles.py	Thu Nov 26 22:34:58 2009 +0000
@@ -107,11 +107,12 @@
         tilevid.Tilevid.__init__(self)
         self.sprites = LayeredSprites(['buildings', 'animals', 'animations', 'cursor'], 'animals')
 
+    @classmethod
     def make(cls):
         """Override default Simplifiable object creation."""
         return cls()
-    make = classmethod(make)
 
+    @classmethod
     def unsimplify(cls, *args, **kwargs):
         """Override default Simplifiable unsimplification."""
         obj = serializer.Simplifiable.unsimplify(*args, **kwargs)
@@ -122,7 +123,6 @@
         obj.updates = []
 
         return obj
-    unsimplify = classmethod(unsimplify)
 
     def png_folder_load_tiles(self, path):
         """Load tiles from a folder of PNG files."""