Anton Simakov
7d2228f85a
use item_location in use actions instead of item * ( #89473 )
2026-11-17 12:07:16 -06:00
Curtis Merrill
258b80d42b
change visitable to item_location, remove item inheritance from visitable, and add item_location inheritance from visitable.
...
Co-Authored-By: dobbry-vechur <259678433+dobbry-vechur@users.noreply.github.com >
2026-09-30 21:34:09 -04:00
RenechCDDA
da2aaffffd
Add quick setup option to clear map
2026-06-22 15:07:51 -04:00
Andrew Krieger
0215b26cce
Rewrite all tests to clear map without touching character map memory, for performance.
2026-02-08 23:05:55 -08:00
moxian
c44d65a8ae
Run IWYU again to pick up the changes
2025-02-11 13:02:19 -08:00
moxian
2ee44002fd
Mechanically IWYU the tests
...
python3 ~/github/include-what-you-use/iwyu_tool.py -j5 -p build $( find
src/ tests/ -maxdepth 1 -name '*.cpp' | grep -v -f
tools/iwyu/bad_files.txt ) -- -Xiwyu --comment_style=long -Xiwyu -
-max_line_length=1000 -Xiwyu --cxx17ns -Xiwyu
--mapping_file=../tools/iwyu/cata.imp | tee out/iwyu/f-a-01.txt >
/dev/null
followed by
cat out/iwyu/f-a-02.txt | python3
~/github/include-what-you-use/fix_includes.py --reorder --nosafe_headers
followed by manual fixups of <stddef.h> -> <cstddef> and similar.
tests/generic_factory_test.cpp gets mangled very badly (IWYU bug) so
it's excluded from the list.
Code size:
includes:
$ cat obj/tiles/*.inc | wc
288068 576136 17898260
$ cat tests/obj/tiles/*.inc | wc
167044 334088 10465766
post-processed source (clang -E):
./make_preproc.sh src/
68567896 177775140 2134075721
./make_preproc.sh tests/
39341957 102891720 1243323710
2025-02-10 00:46:57 -08:00
PatrikLundell
befd4486d1
sundry typification ( #78985 )
...
* sundry typification
* demanded work around
2025-01-06 22:26:26 -06:00
Clarence "Sparr" Risher
8b27b967ae
Replace point constants with static class members
2024-11-26 10:14:26 -05:00
PatrikLundell
ef6b53acfb
typified a little bit of map.h + dependents ( #76340 )
...
* typified a little bit of map.h + dependents
2024-09-27 15:10:36 -07:00
RenechCDDA
b0882ee2eb
Update tests for protected moves variable
2024-03-09 16:33:12 -05:00
Hirmuolio
ffe5a45099
Carrier for items on ground is nullptr ( #66292 )
...
* remove forced player
* multicooker
* radio controller
* mp3
* manage_exosuit
* electricstorage
* incendiary grnd
* crater mapgen
* put avatar back
* geiger
* gasmask
* fishing trap
* astyle
* ehandcuffs
* dive_tank
* style
* message_iuse
* remove activation
* iuse_actor switch from references to pointers
* astyle
* worn items
* p checks
* put thing back
* merge fix
* astyle
* invoke
* can_use
* revert can_use
* transforming item in processing
* unused var
* throw activation test
* remove reference to nullptr
* fix previous commit
* fix fireweapon
* astyle
2023-07-11 15:29:16 -07:00
Alexey
07356b65a5
Normalize TEST_CASE names ( #66241 )
...
* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
2023-06-17 13:57:19 -03:00
Alexey
568aa76de8
Unwrap activity_actors into their own assign_activity overload
2023-04-23 03:58:10 +03:00
Alexey
6a27fb0e67
Fix print conversion error, fix more type warnings ( #64536 )
...
* Fix MSVC type warnings
* Fix print conversion and type errors
2023-03-25 14:14:17 +03:00
cakepie
bd3116f0c2
Charges / item consumption for non-comestible healing; first aid items from comestible to generic ( #63434 )
...
* healing tools consumption
* move firstaid item defs
* firstaid comestible -> tool
* update tests
* TOOL -> GENERIC
* repackage small item spawns
2023-03-03 11:00:14 -04:00
mqrause
d688521e7b
Character::i_add returns an item_location ( #58191 )
...
Co-authored-by: mqrause <martin@qrause.de >
2022-06-18 21:27:30 -04:00
Roy Berube
054fc4b3db
more clang compliance
2022-05-01 09:34:57 -06:00
Roy Berube
a36910b9cb
Appease clang
2022-04-30 21:28:59 -06:00
Roy Berube
d65bb92968
First aid moved to activity actor
2022-04-30 20:06:56 -06:00