ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf/mapscript.pm
(Generate patch)

Comparing deliantra/server/lib/cf/mapscript.pm (file contents):
Revision 1.8 by root, Sun Jan 10 19:21:47 2010 UTC vs.
Revision 1.9 by root, Fri Apr 30 18:28:16 2010 UTC

81} 81}
82 82
83=item trigger $id_or_object[, $state] 83=item trigger $id_or_object[, $state]
84 84
85Triggers the linked chain with the given I<connected> id, or the connected 85Triggers the linked chain with the given I<connected> id, or the connected
86chain associated with the given object (if an objetc reference is passed), 86chain associated with the given object (if an object reference is passed),
87and passes the given state (or C<1>, if missing) to it. 87and passes the given state (or C<1>, if missing) to it.
88 88
89=cut 89=cut
90 90
91sub trigger($;$) { 91sub trigger($;$) {
92 $self->map->trigger ($_[0], $#_ ? $_[1] : 1, $self); 92 $self->map->trigger ($_[0], $#_ ? $_[1] : 1, $self);
93} 93}
94 94
95=item timer $id_or_object, $seconds 95=item timer $id_or_object, $seconds
96 96
97Starts the timer on the given mapscript object (usually, $id_or_object is 97Starts the timer on the given mapscript object (usually, C<$id_or_object> is
98C<$self>). When the timer expires on the mapscript object, it will trigger 98C<$self>). When the timer expires on the mapscript object, it will trigger
99the script with C<$activator == $self> and C<$originator == undef>. 99the script with C<$activator == $self> and C<$originator == undef>.
100 100
101=cut 101=cut
102 102

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines