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.10 by root, Sat Apr 23 04:56:52 2011 UTC

1#! perl
2
3# 1#
4# This file is part of Deliantra, the Roguelike Realtime MMORPG. 2# This file is part of Deliantra, the Roguelike Realtime MMORPG.
5# 3#
6# Copyright (©) 2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4# Copyright (©) 2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
7# 5#
8# Deliantra is free software: you can redistribute it and/or modify it under 6# Deliantra is free software: you can redistribute it and/or modify it under
9# the terms of the Affero GNU General Public License as published by the 7# the terms of the Affero GNU General Public License as published by the
10# Free Software Foundation, either version 3 of the License, or (at your 8# Free Software Foundation, either version 3 of the License, or (at your
11# option) any later version. 9# option) any later version.
81} 79}
82 80
83=item trigger $id_or_object[, $state] 81=item trigger $id_or_object[, $state]
84 82
85Triggers the linked chain with the given I<connected> id, or the connected 83Triggers the linked chain with the given I<connected> id, or the connected
86chain associated with the given object (if an objetc reference is passed), 84chain associated with the given object (if an object reference is passed),
87and passes the given state (or C<1>, if missing) to it. 85and passes the given state (or C<1>, if missing) to it.
88 86
89=cut 87=cut
90 88
91sub trigger($;$) { 89sub trigger($;$) {
92 $self->map->trigger ($_[0], $#_ ? $_[1] : 1, $self); 90 $self->map->trigger ($_[0], $#_ ? $_[1] : 1, $self);
93} 91}
94 92
95=item timer $id_or_object, $seconds 93=item timer $id_or_object, $seconds
96 94
97Starts the timer on the given mapscript object (usually, $id_or_object is 95Starts 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 96C<$self>). When the timer expires on the mapscript object, it will trigger
99the script with C<$activator == $self> and C<$originator == undef>. 97the script with C<$activator == $self> and C<$originator == undef>.
100 98
101=cut 99=cut
102 100

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines