diff demos/rio_de_hola/scripts/agents/cloud.py @ 499:3dff106b945b

Combined the settings extension with the editor settings module. It is now a little more robust. Note that the settings file format has changed. All demos and tools now use the new settings extension.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 14 May 2010 17:37:42 +0000
parents 70697641fca3
children
line wrap: on
line diff
--- a/demos/rio_de_hola/scripts/agents/cloud.py	Fri May 14 16:23:52 2010 +0000
+++ b/demos/rio_de_hola/scripts/agents/cloud.py	Fri May 14 17:37:42 2010 +0000
@@ -28,8 +28,8 @@
 _STATE_NONE, _STATE_FLOATING, _STATE_DISAPPEAR, _STATE_APPEAR = 0, 1, 2, 3
 
 class Cloud(Agent):
-	def __init__(self, model, agentName, layer, uniqInMap=False):
-		super(Cloud, self).__init__(model, agentName, layer, uniqInMap)
+	def __init__(self, settings, model, agentName, layer, uniqInMap=False):
+		super(Cloud, self).__init__(settings, model, agentName, layer, uniqInMap)
 		self.state = _STATE_NONE
 
 	def isOutOfBounds(self, c):