ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/src/backend/communicator/command_parser/map_scroll.h
Revision: 1.1
Committed: Sun Oct 17 08:15:03 2010 UTC (16 years ago) by sf-pippijn
Content type: text/plain
Branch: MAIN
Log Message:
initial import

File Contents

# User Rev Content
1 sf-pippijn 1.1 void
2     command_parser::on_map_scroll (std::istream &args)
3     {
4     int dx, dy;
5     args >> dx >> dy;
6     assert (args.peek () == EOF);
7    
8     map.x += dx;
9     map.y += dy;
10    
11     emit map_scroll (dx, dy);
12     }