map.hpp File Reference

#include "terrain.hpp"
#include "serialization/string_utils.hpp"
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <set>

Include dependency graph for map.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gamemap
 Encapsulates the map of the game. More...
struct  gamemap::incorrect_format_exception
 Throws exception if the map file is not in the correct format. More...
struct  gamemap::location
 Represents a location on the map. More...
class  viewpoint

Defines

#define MAX_MAP_AREA   65536

Functions

std::vector< gamemap::locationparse_location_range (const std::string &xvals, const std::string &yvals, const gamemap *const map=NULL)
 Parses ranges of locations into a vector of locations.
std::ostream & operator<< (std::ostream &s, gamemap::location const &l)
 Dumps a position on a stream, for debug purposes.


Detailed Description

Definition in file map.hpp.


Define Documentation

#define MAX_MAP_AREA   65536

Definition at line 37 of file map.hpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  s,
gamemap::location const &  l 
)

Dumps a position on a stream, for debug purposes.

Definition at line 41 of file map.cpp.

References gamemap::location::x, and gamemap::location::y.

std::vector<gamemap::location> parse_location_range ( const std::string &  xvals,
const std::string &  yvals,
const gamemap *const   map = NULL 
)

Parses ranges of locations into a vector of locations.

Definition at line 764 of file map.cpp.

References gamemap::h(), utils::parse_range(), utils::split(), and gamemap::w().

Referenced by ai::avoided_locations(), gamestatus::gamestatus(), terrain_filter::get_locations(), and multiple_locs().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs