Module ...

Describes a trap

Functions

_M:canDisarm (x, y, who) Can we disarm this trap?
_M:canTrigger (x, y, who) Called when triggered
_M:disarm (x, y, who) Try to disarm the trap
_M:getName () Get trap name Can be overloaded to do trap identification if needed
_M:knownBy (actor) Get the known status for the given actor
_M:onDisarm (x, y, who) Called when disarmed
_M:on_move (x, y, who, forced) When moving on a trap, trigger it
_M:setKnown (actor, v) Set the known status for the given actor
_M:setup () Setup the trap
_M:trigger (x, y, who) Trigger the trap


Functions

_M:canDisarm (x, y, who)
Can we disarm this trap?

Parameters

  • x:
  • y:
  • who:
_M:canTrigger (x, y, who)
Called when triggered

Parameters

  • x:
  • y:
  • who:
_M:disarm (x, y, who)
Try to disarm the trap

Parameters

  • x:
  • y:
  • who:
_M:getName ()
Get trap name Can be overloaded to do trap identification if needed
_M:knownBy (actor)
Get the known status for the given actor

Parameters

  • actor:
_M:onDisarm (x, y, who)
Called when disarmed

Parameters

  • x:
  • y:
  • who:
_M:on_move (x, y, who, forced)
When moving on a trap, trigger it

Parameters

  • x:
  • y:
  • who:
  • forced:
_M:setKnown (actor, v)
Set the known status for the given actor

Parameters

  • actor:
  • v:
_M:setup ()
Setup the trap
_M:trigger (x, y, who)
Trigger the trap

Parameters

  • x:
  • y:
  • who:

Valid XHTML 1.0!