map.cpp File Reference

Routines related to game-maps, terrain, locations, directions. More...

#include "global.hpp"
#include "config.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map.hpp"
#include "pathfind.hpp"
#include "util.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/parser.hpp"
#include "wml_exception.hpp"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <sstream>

Include dependency graph for map.cpp:

Go to the source code of this file.

Defines

#define ERR_CF   LOG_STREAM(err, config)
#define LOG_G   LOG_STREAM(info, general)
#define DBG_G   LOG_STREAM(debug, general)

Functions

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


Detailed Description

Routines related to game-maps, terrain, locations, directions.

etc.

Definition in file map.cpp.


Define Documentation

#define DBG_G   LOG_STREAM(debug, general)

Definition at line 39 of file map.cpp.

#define ERR_CF   LOG_STREAM(err, config)

Definition at line 37 of file map.cpp.

#define LOG_G   LOG_STREAM(info, general)

Definition at line 38 of file map.cpp.


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 &  x,
const std::string &  y,
const gamemap *const   map 
)

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