ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Games-Sokoban/Sokoban.pm
(Generate patch)

Comparing Games-Sokoban/Sokoban.pm (file contents):
Revision 1.4 by root, Tue May 11 23:32:15 2010 UTC vs.
Revision 1.5 by root, Tue May 11 23:48:40 2010 UTC

205 205
206sub as_lines { 206sub as_lines {
207 split /\n/, $_[0]{data} 207 split /\n/, $_[0]{data}
208} 208}
209 209
210=item @lines = $level->as_rle 210=item $line = $level->as_rle
211 211
212http://www.sokobano.de/wiki/index.php?title=Level_format 212http://www.sokobano.de/wiki/index.php?title=Level_format
213 213
214=cut 214=cut
215 215
222 222
223 $data 223 $data
224} 224}
225 225
226=item ($x, $y) = $level->start 226=item ($x, $y) = $level->start
227
228Returns (0-based) starting coordinate.
227 229
228=cut 230=cut
229 231
230sub start { 232sub start {
231 my ($self) = @_; 233 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines