#include <boost/assign/list_of.hpp>#include "utils/functional.hpp"#include <boost/test/unit_test.hpp>#include "map/location.hpp"
Go to the source code of this file.
Classes | |
| struct | MLFixture |
Macros | |
| #define | GETTEXT_DOMAIN "wesnoth-test" |
Variables | |
| static std::vector< map_location > | preset_locs |
| static map_location | va |
| static map_location | vb |
| static map_location | vc |
| static map_location | vz |
| static map_location | vt1 |
| static map_location | vt2 |
| static map_location | vt3 |
| static map_location | vs1 |
| static map_location | vs2 |
| static map_location | vs3 |
| static map_location | vs4 |
| static map_location::DIRECTION | n = map_location::NORTH |
| static map_location::DIRECTION | ne = map_location::NORTH_EAST |
| static map_location::DIRECTION | nw = map_location::NORTH_WEST |
| static map_location::DIRECTION | s = map_location::SOUTH |
| static map_location::DIRECTION | se = map_location::SOUTH_EAST |
| static map_location::DIRECTION | sw = map_location::SOUTH_WEST |
| #define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 15 of file test_map_location.cpp.
| BOOST_AUTO_TEST_CASE | ( | map_location_characterization_test_radial_mode | ) |
Definition at line 202 of file test_map_location.cpp.
References characterization_distance_direction(), get_first(), get_second(), and map_location::RADIAL_SYMMETRY.
| BOOST_AUTO_TEST_CASE | ( | reality_check_vector_negation | ) |
Definition at line 276 of file test_map_location.cpp.
References mirror_walk(), ne, nw, se, and sw.
| BOOST_AUTO_TEST_CASE | ( | reality_check_get_direction | ) |
Definition at line 306 of file test_map_location.cpp.
References ne, nw, reality_check_get_direction_helper(), se, and sw.
| BOOST_AUTO_TEST_CASE | ( | check_get_opposite_dir_refactor | ) |
Definition at line 347 of file test_map_location.cpp.
References d, map_location::get_opposite_dir(), i, and legacy_get_opposite_dir().
| BOOST_AUTO_TEST_CASE | ( | check_rotate | ) |
Definition at line 355 of file test_map_location.cpp.
References d, map_location::get_opposite_dir(), i, map_location::NORTH, map_location::NORTH_EAST, map_location::NORTH_WEST, map_location::rotate_right(), map_location::SOUTH, map_location::SOUTH_EAST, and map_location::SOUTH_WEST.
| BOOST_AUTO_TEST_CASE | ( | check_rotate_around_center | ) |
Definition at line 400 of file test_map_location.cpp.
References rotate_around_centers().
| BOOST_AUTO_TEST_SUITE | ( | test_map_location | ) |
| BOOST_GLOBAL_FIXTURE | ( | MLFixture | ) |
|
static |
Definition at line 81 of file test_map_location.cpp.
References c, distance_between(), map_location::get_opposite_dir(), map_location::get_relative_dir(), map_location::RADIAL_SYMMETRY, vector_difference(), map_location::vector_difference_assign(), map_location::vector_negation(), map_location::vector_sum(), and map_location::write_direction().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 131 of file test_map_location.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 132 of file test_map_location.cpp.
References map_location::parse_direction().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 326 of file test_map_location.cpp.
References map_location::NDIRECTIONS, map_location::NORTH, map_location::NORTH_EAST, map_location::NORTH_WEST, map_location::SOUTH, map_location::SOUTH_EAST, and map_location::SOUTH_WEST.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 268 of file test_map_location.cpp.
References map_location::get_opposite_dir().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 295 of file test_map_location.cpp.
References distance_between(), map_location::get_direction(), tiles_adjacent(), and map_location::vector_sum().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 383 of file test_map_location.cpp.
References map_location::rotate_right_around_center().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 73 of file test_map_location.cpp.
References map_location::vector_difference_assign().
Referenced by characterization_distance_direction().
|
static |
Definition at line 25 of file test_map_location.cpp.
|
static |
Definition at line 26 of file test_map_location.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), MLFixture::MLFixture(), and gui2::teditor_resize_map::update_expand_direction().
|
static |
Definition at line 27 of file test_map_location.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), t_string::increase_impl(), MLFixture::MLFixture(), and gui2::teditor_resize_map::update_expand_direction().
|
static |
Definition at line 23 of file test_map_location.cpp.
|
static |
Definition at line 28 of file test_map_location.cpp.
|
static |
Definition at line 29 of file test_map_location.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), MLFixture::MLFixture(), and gui2::teditor_resize_map::update_expand_direction().
|
static |
Definition at line 30 of file test_map_location.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), MLFixture::MLFixture(), singlestep(), tile_surface(), and gui2::teditor_resize_map::update_expand_direction().
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
|
static |
Definition at line 24 of file test_map_location.cpp.
1.8.8