Mercurial > fife-parpg
diff clients/rio_de_hola/scripts/agents/cloud.py @ 129:9a1529f9625e
* Indentation patch by GreyGhost
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 07 Aug 2008 15:46:46 +0000 |
parents | ae3b8139c7c7 |
children |
line wrap: on
line diff
--- a/clients/rio_de_hola/scripts/agents/cloud.py Wed Aug 06 22:35:27 2008 +0000 +++ b/clients/rio_de_hola/scripts/agents/cloud.py Thu Aug 07 15:46:46 2008 +0000 @@ -8,7 +8,7 @@ def __init__(self, model, agentName, layer, uniqInMap=False): super(Cloud, self).__init__(model, agentName, layer, uniqInMap) self.state = _STATE_NONE - + def isOutOfBounds(self, c): return (c.x < 0) or (c.x > 100) or (c.y < 0) or (c.y > 100) @@ -33,16 +33,15 @@ self.loc = self.agent.getLocation() self.initialCoords = self.agent.getLocation().getExactLayerCoordinates() self.appear() - + def appear(self): self.state = _STATE_APPEAR self.agent.act('appear', self.loc, False) - + def disappear(self): self.state = _STATE_DISAPPEAR self.agent.act('disappear', self.loc, False) - + def move(self): self.state = _STATE_FLOATING self.agent.act('default', self.loc, False) -