* Change _ctype.h and __locale to cctype and clocale
* Change _wctype.h to cwctype in game.cpp
* Change __functional_base to functional
* Remove libcxx internal headers
* Remove UNIX system headers
* Fix clang-tidy error with -nostdinc++
* Add units::angle and port various code to use it
Add a typesafe angle type. Partly for general type safety but also to
avoid confusion between different measures of angle (radians, degrees,
and arcmin are all used in this codebase.
Convert tileray to use the new type, and deal with the fallout from
other things that depend on tileray.
Most of the changes relate to changing vehicle facing to the new type.
Note that this changes vehicle facing from an integer to a floating
point type, which could cause some behavioural change.
* Include math_defines.h for Window build
Previously we had separate functions closest_points_first and
closest_tripoints_first. We'd like to extend this functionality to
coord_point, but it's easier to do if both the raw underlying functions
have the same name (so the generic wrapper can be the same).
To that end, rename closest_tripoints_first to closest_points_first
(they are chosen between based on overload resolution), and add a
wrapper to allow coord_point to be used similarly.
itype_id is (presumably) one of the oldest type ids in the game. In
particular, it predates string_id, and was simply a typedef of
std::string.
This is bad for type safety.
Make it be a string_id specialization instead, and update the rest of
the code accordingly.
* Helper script to run IWYU
* Run IWYU
* Update deprecated headers
* Run IWYU again
* Re-suppress cxxabi.h
This pragma got accidentally removed because it was deemed to be a
comment attached to a #include.
* Remove extra SDL header includes
* Fix ime.cpp headers
Some tweaks to help IWYU not break this file by messing with
platform-specific stuff not relevant on Linux.
* Update game.h
* Move new point.h includes inside #ifdef
* Re-add platform_win.h to mapsharing.cpp
* Apply suggestions from code review
Co-authored-by: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
* Revert "Moved more string consts into single file (#38237)"
This reverts commit 49877426ce.
* Revert "Moved more string consts into single file (#38220)"
This reverts commit d9c6079762.
* Revert "Move string consts into single file (#38195)"
This reverts commit b1b48badff.
* Revert "More string consts into single file (#38189)"
This reverts commit 4fffd96143.
* Revert "More string consts into single file (#38183)"
This reverts commit 05940bfe3a.
* Revert "Move string consts into single file (#38184)"
This reverts commit 19c569826b.
* Revert "Move string consts into single file (#38181)"
This reverts commit 55cabb794c.
* Revert "Move more string consts into single file (#38175)"
This reverts commit 571efb2f8e.
* Revert "Merge pull request #38176 from Ramza13/string_consts_and_more"
This reverts commit 9c9835ff08, reversing
changes made to 07995cdda5.
* Revert "Move more string consts into single file (#38169)"
This reverts commit 07995cdda5.
* Revert "Merge pull request #38168 from Ramza13/even_more_string_consts"
This reverts commit 2bf1c1ea18, reversing
changes made to 24a32c0d1a.
* Revert "Merge pull request #38141 from ZhilkinSerg/sa-2020-02-18"
This reverts commit 142295b1dc, reversing
changes made to f98c67d3c3.
* Revert "Move string consts into single file (#38158)"
This reverts commit 50059c8a24.
* Revert "Merge pull request #38157 from Ramza13/string_consts_more_flags"
This reverts commit 8ec8e78959, reversing
changes made to 72ef0222a0.
* Revert "Move string_consts"
This reverts commit 0a6bf67436.
* Revert "Merge pull request #38146 from Ramza13/battery"
This reverts commit 9286722b74, reversing
changes made to e9f1cd7787.
* Revert "Merge pull request #38134 from AMurkin/rename-blob"
This reverts commit 06f72d2b7d, reversing
changes made to bcfe0741e1.
* Revert "Yet more string consts moved out (#38130)"
This reverts commit b5f18f3574.
* Revert "Merge pull request #38115 from Ramza13/string_consts_game"
This reverts commit 98076577b0, reversing
changes made to 036465f517.
* Fixup to the picked_up
* RE-inline item_location initialization
* Update character.h
* Update item.cpp
* Update item.h
* Update item_action.cpp
* Update item_factory.cpp
* Update point.h
* Update safemode_ui.cpp
* Refactored `closest_(tri)points_first` functions
- moved into `point` file;
- rearranged function parameters;
- removed duplicate code;
- get rid of some `auto` and one time use variables;