diff behaviours/base.py @ 33:77dfe4a917b5

Set default value of layer parameter of BaseBehaviour to None
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:09:04 +0200
parents ec5a55266f6a
children 98f26f7636d8
line wrap: on
line diff
--- a/behaviours/base.py	Mon Sep 05 13:56:27 2011 +0200
+++ b/behaviours/base.py	Mon Sep 05 14:09:04 2011 +0200
@@ -19,7 +19,7 @@
 
 class BaseBehaviour (fife.InstanceActionListener):
     """Fife agent listener"""
-    def __init__(self, layer):
+    def __init__(self, layer=None):
         fife.InstanceActionListener.__init__(self)
         self.layer = layer
         self.agent = None