Permalink
Browse files

CanSee should pass the observer, like, for real.

  • Loading branch information...
1 parent ceca85c commit 597f6a697d59daecc4b0d92bc411ee3d4a2c996f @glyph committed Jun 6, 2014
Showing with 4 additions and 4 deletions.
  1. +1 −1 imaginary/action.py
  2. +2 −3 imaginary/garments.py
  3. +1 −0 imaginary/iimaginary.py
View
@@ -310,7 +310,7 @@ def _getIt(player, thingName, iface, radius):
@return: An iterable of L{iimaginary.IThing} providers which are found.
"""
providerOf = ProviderOf(iface)
- canSee = CanSee(providerOf)
+ canSee = CanSee(providerOf, player)
named = Named(thingName, canSee, player)
reachable = Reachable(named)
proximity = Proximity(radius, reachable)
@@ -6,7 +6,7 @@
"""
-from zope.interface import implements
+from zope.interface import implements, implementer
from axiom import item, attributes
@@ -296,6 +296,7 @@ def annotationsFor(self, link, idea):
+@implementer(iimaginary.IElectromagneticMedium)
class _WornBy(object):
"""
This is an annotation, produced by L{Wearer} for containment relationships
@@ -304,8 +305,6 @@ class _WornBy(object):
its own way and therefor shouldn't show up in the list of a person's
contents.
"""
- implements(iimaginary.IElectromagneticMedium)
-
def __init__(self, wearer):
"""
@@ -732,6 +732,7 @@ def isOpaque(observer):
@param observer: The L{Thing} which has eyeballs which are shooting out
electromagnetic radiation which could lead to reflected perceptrons
to let the L{Thing} perceive a target.
+ @type observer: L{Thing}
@note: This interface has a problem. C{observer} should probably
provide some kind of C{ISpectrum} interface and the implementation

0 comments on commit 597f6a6

Please sign in to comment.