Revision: 1359
Author: ccanepacc
Date: Mon Mar 24 11:58:58 2014 UTC
Log: removing Scrolling from tiles.py, was long time deprecated
http://code.google.com/p/los-cocos/source/detail?r=1359
Modified:
/trunk/cocos/tiles.py
=======================================
--- /trunk/cocos/tiles.py Thu Mar 20 18:23:25 2014 UTC
+++ /trunk/cocos/tiles.py Mon Mar 24 11:58:58 2014 UTC
@@ -58,22 +58,6 @@
unicode = six.text_type
-# Implement these classes for backwards compatibility; some older code
-# expects ScrollableLayer and ScrollingManager to be in the tiles module.
-from cocos import layer
-class ScrollableLayer(layer.ScrollableLayer):
- def __init__(self, parallax=1):
- import warnings
- warnings.warn('ScrollableLayer been has moved to cocos.layer',
- DeprecationWarning, stacklevel=2)
- super(ScrollableLayer, self).__init__(parallax=parallax)
-class ScrollingManager(layer.ScrollingManager):
- def __init__(self, viewport=None):
- import warnings
- warnings.warn('ScrollingManager been has moved to cocos.layer',
- DeprecationWarning, stacklevel=2)
- super(ScrollingManager, self).__init__(viewport=viewport)
-
class ResourceError(Exception):
pass
@@ -644,7 +628,7 @@
return int(height / sqrt(3) * 2)
-class MapLayer(layer.ScrollableLayer):
+class MapLayer(cocos.layer.ScrollableLayer):
'''Base class for Maps.
Maps are comprised of tiles and can figure out which tiles are
required to