/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/ |
H A D | mapgen_function_test.cpp | 21 CHECK( connects_to( oter_id( "sewer_ns" ), north ) ); 23 CHECK( connects_to( oter_id( "sewer_ns" ), south ) ); 28 CHECK( connects_to( oter_id( "sewer_ew" ), east ) ); 30 CHECK( connects_to( oter_id( "sewer_ew" ), west ) ); 33 CHECK( connects_to( oter_id( "sewer_ne" ), north ) ); 34 CHECK( connects_to( oter_id( "sewer_ne" ), east ) ); 40 CHECK( connects_to( oter_id( "sewer_es" ), east ) ); 41 CHECK( connects_to( oter_id( "sewer_es" ), south ) ); 47 CHECK( connects_to( oter_id( "sewer_sw" ), south ) ); 48 CHECK( connects_to( oter_id( "sewer_sw" ), west ) ); [all …]
|
H A D | overmap_test.cpp | 97 const oter_id t = test_overmap->ter( { x, y, 0 } ); 114 CHECK( is_ot_match( "forest", oter_id( "forest" ), ot_match_type::exact ) ); 115 CHECK( is_ot_match( "central_lab", oter_id( "central_lab" ), ot_match_type::exact ) ); 130 CHECK_FALSE( is_ot_match( "lab", oter_id( "central_lab" ), ot_match_type::type ) ); 136 CHECK( is_ot_match( "forest", oter_id( "forest" ), ot_match_type::prefix ) ); 137 CHECK( is_ot_match( "central_lab", oter_id( "central_lab" ), ot_match_type::prefix ) ); 140 CHECK( is_ot_match( "central", oter_id( "central_lab" ), ot_match_type::prefix ) ); 145 CHECK( is_ot_match( "central_lab_train", oter_id( "central_lab_train_depot" ), 149 CHECK_FALSE( is_ot_match( "fore", oter_id( "forest" ), ot_match_type::prefix ) ); 153 CHECK_FALSE( is_ot_match( "lab", oter_id( "central_lab" ), ot_match_type::prefix ) ); [all …]
|
H A D | map_extra_test.cpp | 58 const oter_id road( "road_ns" ); 59 const oter_id bridgehead( "bridgehead_ground_north" ); 60 const oter_id bridge( "bridge_north" );
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/ |
H A D | mapgen_function_test.cpp | 21 CHECK( connects_to( oter_id( "sewer_ns" ), north ) ); 23 CHECK( connects_to( oter_id( "sewer_ns" ), south ) ); 28 CHECK( connects_to( oter_id( "sewer_ew" ), east ) ); 30 CHECK( connects_to( oter_id( "sewer_ew" ), west ) ); 33 CHECK( connects_to( oter_id( "sewer_ne" ), north ) ); 34 CHECK( connects_to( oter_id( "sewer_ne" ), east ) ); 40 CHECK( connects_to( oter_id( "sewer_es" ), east ) ); 41 CHECK( connects_to( oter_id( "sewer_es" ), south ) ); 47 CHECK( connects_to( oter_id( "sewer_sw" ), south ) ); 48 CHECK( connects_to( oter_id( "sewer_sw" ), west ) ); [all …]
|
H A D | overmap_test.cpp | 97 const oter_id t = test_overmap->ter( { x, y, 0 } ); 114 CHECK( is_ot_match( "forest", oter_id( "forest" ), ot_match_type::exact ) ); 115 CHECK( is_ot_match( "central_lab", oter_id( "central_lab" ), ot_match_type::exact ) ); 130 CHECK_FALSE( is_ot_match( "lab", oter_id( "central_lab" ), ot_match_type::type ) ); 136 CHECK( is_ot_match( "forest", oter_id( "forest" ), ot_match_type::prefix ) ); 137 CHECK( is_ot_match( "central_lab", oter_id( "central_lab" ), ot_match_type::prefix ) ); 140 CHECK( is_ot_match( "central", oter_id( "central_lab" ), ot_match_type::prefix ) ); 145 CHECK( is_ot_match( "central_lab_train", oter_id( "central_lab_train_depot" ), 149 CHECK_FALSE( is_ot_match( "fore", oter_id( "forest" ), ot_match_type::prefix ) ); 153 CHECK_FALSE( is_ot_match( "lab", oter_id( "central_lab" ), ot_match_type::prefix ) ); [all …]
|
H A D | map_extra_test.cpp | 58 const oter_id road( "road_ns" ); 59 const oter_id bridgehead( "bridgehead_ground_north" ); 60 const oter_id bridge( "bridge_north" );
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/ |
H A D | mapgendata.h | 38 oter_id terrain_type_; 45 oter_id t_nesw[8]; 56 oter_id t_above; 57 oter_id t_below; 65 mapgendata( oter_id t_north, oter_id t_east, oter_id t_south, oter_id t_west, 66 oter_id northeast, oter_id southeast, oter_id southwest, oter_id northwest, 67 oter_id up, oter_id down, int z, const regional_settings &rsettings, map &mp, 107 const oter_id &north() const { in north() 110 const oter_id &east() const { in east() 113 const oter_id &south() const { in south() [all …]
|
H A D | mapgendata.cpp | 11 mapgendata::mapgendata( oter_id north, oter_id east, oter_id south, oter_id west, in mapgendata() 12 oter_id northeast, oter_id southeast, oter_id southwest, oter_id northwest, in mapgendata() 13 … oter_id up, oter_id down, int z, const regional_settings &rsettings, map &mp, in mapgendata() 14 const oter_id &terrain_type, const float density, const time_point &when, in mapgendata() 43 mapgendata::mapgendata( const mapgendata &other, const oter_id &other_id ) : mapgendata( other ) in mapgendata() 146 const oter_id &mapgendata::neighbor_at( om_direction::type dir ) const in neighbor_at()
|
H A D | overmap.cpp | 81 static oter_id ot_null, 470 bool is_river( const oter_id &ter ) in is_river() 1519 const oter_id skip_above[5] = { in generate_sub() 1520 oter_id( "empty_rock" ), oter_id( "forest" ), oter_id( "field" ), in generate_sub() 1521 oter_id( "forest_thick" ), oter_id( "forest_water" ) in generate_sub() 1776 oter_id( "empty_rock" ), oter_id( "forest" ), oter_id( "field" ), in generate_over() 1777 oter_id( "forest_thick" ), oter_id( "forest_water" ) in generate_over() 3304 ter_set( target, ordinary_ants ? oter_id( "ants_queen" ) : oter_id( "ants_queen_acid" ) ); in build_anthill() 3417 const oter_id mine( "mine" ); in build_mine() 3450 const oter_id rift( "ravine" ); in place_ravines() [all …]
|
H A D | overmap_connection.cpp | 153 string_id<overmap_connection> overmap_connections::guess_for( const int_id<oter_t> &oter_id ) in guess_for() argument 157 all.cend(), [&oter_id]( const overmap_connection & elem ) { in guess_for() 158 return elem.pick_subtype_for( oter_id ) != nullptr; in guess_for() 164 string_id<overmap_connection> overmap_connections::guess_for( const int_id<oter_type_t> &oter_id ) in guess_for() argument 166 return guess_for( oter_id->get_first() ); in guess_for()
|
H A D | overmap.h | 103 oter_id terrain[OMAPX][OMAPY]; 239 void ter_set( const tripoint_om_omt &p, const oter_id &id ); 240 const oter_id &ter( const tripoint_om_omt &p ) const; 365 oter_id get_default_terrain( int z ) const; 514 bool is_river( const oter_id &ter ); 515 bool is_river_or_lake( const oter_id &ter ); 524 bool is_ot_match( const std::string &name, const oter_id &oter, 536 std::string oter_no_dir( const oter_id &oter ); 542 int oter_get_rotation( const oter_id &oter ); 547 std::string oter_get_rotation_string( const oter_id &oter );
|
H A D | savegame.cpp | 352 ter_set( pos, oter_id( old + "_north" ) ); in convert_terrain() 354 ter_set( pos, oter_id( old ) ); in convert_terrain() 363 ter_set( pos, oter_id( "field" ) ); in convert_terrain() 365 ter_set( pos, oter_id( "office_tower_ne_north" ) ); in convert_terrain() 381 ter_set( pos, oter_id( conv.new_id ) ); in convert_terrain() 440 oter_id tmp_otid( 0 ); in unserialize() 453 tmp_otid = oter_id( 0 ); in unserialize() 455 tmp_otid = oter_id( tmp_ter ); in unserialize() 458 tmp_otid = oter_id( 0 ); in unserialize() 901 oter_id last_tertype( -1 ); in serialize() [all …]
|
H A D | omdata.h | 226 oter_id get_first() const; 227 oter_id get_rotated( om_direction::type dir ) const; 228 oter_id get_linear( size_t n ) const; 252 std::vector<oter_id> directional_peers; 274 oter_id get_rotated( om_direction::type dir ) const; 373 bool operator==( const oter_id &lhs, const char *rhs ); 374 bool operator!=( const oter_id &lhs, const char *rhs ); 424 bool can_be_placed_on( const oter_id &oter ) const;
|
H A D | event_field_transformations.cpp | 52 const oter_id oter = v.get<oter_id>(); in oter_type_of_oter() 87 { oter_type_of_oter, cata_variant_type::oter_type_str_id, { cata_variant_type::oter_id } }
|
H A D | overmap_connection.h | 83 string_id<overmap_connection> guess_for( const int_id<oter_type_t> &oter_id ); 84 string_id<overmap_connection> guess_for( const int_id<oter_t> &oter_id );
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/ |
H A D | mapgendata.h | 38 oter_id terrain_type_; 45 oter_id t_nesw[8]; 56 oter_id t_above; 57 oter_id t_below; 65 mapgendata( oter_id t_north, oter_id t_east, oter_id t_south, oter_id t_west, 66 oter_id northeast, oter_id southeast, oter_id southwest, oter_id northwest, 67 oter_id up, oter_id down, int z, const regional_settings &rsettings, map &mp, 107 const oter_id &north() const { in north() 110 const oter_id &east() const { in east() 113 const oter_id &south() const { in south() [all …]
|
H A D | mapgendata.cpp | 11 mapgendata::mapgendata( oter_id north, oter_id east, oter_id south, oter_id west, in mapgendata() 12 oter_id northeast, oter_id southeast, oter_id southwest, oter_id northwest, in mapgendata() 13 … oter_id up, oter_id down, int z, const regional_settings &rsettings, map &mp, in mapgendata() 14 const oter_id &terrain_type, const float density, const time_point &when, in mapgendata() 43 mapgendata::mapgendata( const mapgendata &other, const oter_id &other_id ) : mapgendata( other ) in mapgendata() 146 const oter_id &mapgendata::neighbor_at( om_direction::type dir ) const in neighbor_at()
|
H A D | overmap.cpp | 81 static oter_id ot_null, 470 bool is_river( const oter_id &ter ) in is_river() 1519 const oter_id skip_above[5] = { in generate_sub() 1520 oter_id( "empty_rock" ), oter_id( "forest" ), oter_id( "field" ), in generate_sub() 1521 oter_id( "forest_thick" ), oter_id( "forest_water" ) in generate_sub() 1776 oter_id( "empty_rock" ), oter_id( "forest" ), oter_id( "field" ), in generate_over() 1777 oter_id( "forest_thick" ), oter_id( "forest_water" ) in generate_over() 3304 ter_set( target, ordinary_ants ? oter_id( "ants_queen" ) : oter_id( "ants_queen_acid" ) ); in build_anthill() 3417 const oter_id mine( "mine" ); in build_mine() 3450 const oter_id rift( "ravine" ); in place_ravines() [all …]
|
H A D | overmap_connection.cpp | 153 string_id<overmap_connection> overmap_connections::guess_for( const int_id<oter_t> &oter_id ) in guess_for() argument 157 all.cend(), [&oter_id]( const overmap_connection & elem ) { in guess_for() 158 return elem.pick_subtype_for( oter_id ) != nullptr; in guess_for() 164 string_id<overmap_connection> overmap_connections::guess_for( const int_id<oter_type_t> &oter_id ) in guess_for() argument 166 return guess_for( oter_id->get_first() ); in guess_for()
|
H A D | overmap.h | 103 oter_id terrain[OMAPX][OMAPY]; 239 void ter_set( const tripoint_om_omt &p, const oter_id &id ); 240 const oter_id &ter( const tripoint_om_omt &p ) const; 365 oter_id get_default_terrain( int z ) const; 514 bool is_river( const oter_id &ter ); 515 bool is_river_or_lake( const oter_id &ter ); 524 bool is_ot_match( const std::string &name, const oter_id &oter, 536 std::string oter_no_dir( const oter_id &oter ); 542 int oter_get_rotation( const oter_id &oter ); 547 std::string oter_get_rotation_string( const oter_id &oter );
|
H A D | savegame.cpp | 352 ter_set( pos, oter_id( old + "_north" ) ); in convert_terrain() 354 ter_set( pos, oter_id( old ) ); in convert_terrain() 363 ter_set( pos, oter_id( "field" ) ); in convert_terrain() 365 ter_set( pos, oter_id( "office_tower_ne_north" ) ); in convert_terrain() 381 ter_set( pos, oter_id( conv.new_id ) ); in convert_terrain() 440 oter_id tmp_otid( 0 ); in unserialize() 453 tmp_otid = oter_id( 0 ); in unserialize() 455 tmp_otid = oter_id( tmp_ter ); in unserialize() 458 tmp_otid = oter_id( 0 ); in unserialize() 901 oter_id last_tertype( -1 ); in serialize() [all …]
|
H A D | omdata.h | 226 oter_id get_first() const; 227 oter_id get_rotated( om_direction::type dir ) const; 228 oter_id get_linear( size_t n ) const; 252 std::vector<oter_id> directional_peers; 274 oter_id get_rotated( om_direction::type dir ) const; 373 bool operator==( const oter_id &lhs, const char *rhs ); 374 bool operator!=( const oter_id &lhs, const char *rhs ); 424 bool can_be_placed_on( const oter_id &oter ) const;
|
H A D | event_field_transformations.cpp | 52 const oter_id oter = v.get<oter_id>(); in oter_type_of_oter() 87 { oter_type_of_oter, cata_variant_type::oter_type_str_id, { cata_variant_type::oter_id } }
|
H A D | overmap_connection.h | 83 string_id<overmap_connection> guess_for( const int_id<oter_type_t> &oter_id ); 84 string_id<overmap_connection> guess_for( const int_id<oter_t> &oter_id );
|
H A D | gamemode_tutorial.cpp | 125 const oter_id rock( "rock" ); in init() 142 starting_om.ter_set( lp, oter_id( "tutorial" ) ); in init() 143 starting_om.ter_set( lp + tripoint_below, oter_id( "tutorial" ) ); in init()
|