void command_parser::on_map_scroll (std::istream &args) { int dx, dy; args >> dx >> dy; assert (args.peek () == EOF); map.x += dx; map.y += dy; emit map_scroll (dx, dy); }