Skip to content

Commit

Permalink
CanSee should pass the observer, like, for real.
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Jun 6, 2014
1 parent ceca85c commit 597f6a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion imaginary/action.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _getIt(player, thingName, iface, radius):
@return: An iterable of L{iimaginary.IThing} providers which are found. @return: An iterable of L{iimaginary.IThing} providers which are found.
""" """
providerOf = ProviderOf(iface) providerOf = ProviderOf(iface)
canSee = CanSee(providerOf) canSee = CanSee(providerOf, player)
named = Named(thingName, canSee, player) named = Named(thingName, canSee, player)
reachable = Reachable(named) reachable = Reachable(named)
proximity = Proximity(radius, reachable) proximity = Proximity(radius, reachable)
Expand Down
5 changes: 2 additions & 3 deletions imaginary/garments.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
""" """


from zope.interface import implements from zope.interface import implements, implementer


from axiom import item, attributes from axiom import item, attributes


Expand Down Expand Up @@ -296,6 +296,7 @@ def annotationsFor(self, link, idea):






@implementer(iimaginary.IElectromagneticMedium)
class _WornBy(object): class _WornBy(object):
""" """
This is an annotation, produced by L{Wearer} for containment relationships This is an annotation, produced by L{Wearer} for containment relationships
Expand All @@ -304,8 +305,6 @@ class _WornBy(object):
its own way and therefor shouldn't show up in the list of a person's its own way and therefor shouldn't show up in the list of a person's
contents. contents.
""" """
implements(iimaginary.IElectromagneticMedium)



def __init__(self, wearer): def __init__(self, wearer):
""" """
Expand Down
1 change: 1 addition & 0 deletions imaginary/iimaginary.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ def isOpaque(observer):
@param observer: The L{Thing} which has eyeballs which are shooting out @param observer: The L{Thing} which has eyeballs which are shooting out
electromagnetic radiation which could lead to reflected perceptrons electromagnetic radiation which could lead to reflected perceptrons
to let the L{Thing} perceive a target. to let the L{Thing} perceive a target.
@type observer: L{Thing}
@note: This interface has a problem. C{observer} should probably @note: This interface has a problem. C{observer} should probably
provide some kind of C{ISpectrum} interface and the implementation provide some kind of C{ISpectrum} interface and the implementation
Expand Down

0 comments on commit 597f6a6

Please sign in to comment.