comparison clients/rio_de_hola/scripts/agents/agent.py @ 129:9a1529f9625e

* Indentation patch by GreyGhost
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 07 Aug 2008 15:46:46 +0000
parents 214e3eb81eb2
children
comparison
equal deleted inserted replaced
128:6e1fd3571440 129:9a1529f9625e
14 def onInstanceActionFinished(self, instance, action): 14 def onInstanceActionFinished(self, instance, action):
15 raise ProgrammingError('No OnActionFinished defined for Agent') 15 raise ProgrammingError('No OnActionFinished defined for Agent')
16 16
17 def start(self): 17 def start(self):
18 raise ProgrammingError('No start defined for Agent') 18 raise ProgrammingError('No start defined for Agent')
19 19
20 20
21 def create_anonymous_agents(model, objectName, layer, agentClass): 21 def create_anonymous_agents(model, objectName, layer, agentClass):
22 agents = [] 22 agents = []
23 instances = [a for a in layer.getInstances() if a.getObject().getId() == objectName] 23 instances = [a for a in layer.getInstances() if a.getObject().getId() == objectName]
24 i = 0 24 i = 0