devilutionX/Source
ephphatha 379d6e87b3 Move ObjectAtPosition to objects.cpp and make it return a pointer
All set maps initialise objects as expected so dObject has the correct ID already, no need to iterate over all active objects. Also by returning a pointer we can use this function to test if an object exists at the target position.

While on msvc int8_t is typedefed to signed char we might as well match the expected data type for the dObject array
2021-12-28 16:01:37 +01:00
..
controls Improve behavior of ToControllerButtonEvent() 2021-12-24 23:08:41 +01:00
DiabloUI Consistently trigger menu/movie transitions on mouse up instead of down 2021-12-28 04:34:26 +01:00
discord Implement Discord rich presence (#3711) 2021-12-15 17:14:17 +01:00
dvlnet clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
engine Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
miniwin Improve behavior of ToControllerButtonEvent() 2021-12-24 23:08:41 +01:00
mpq MpqWriter: Cleanups and renames 2021-12-11 19:41:53 +00:00
panels Spell book: Fix "Level 0 - Unusable" overlap 2021-12-26 09:35:22 +00:00
platform CMake: Split out platform libraries 2021-12-21 21:01:47 +00:00
qol Add OptionEntries for Poition Pickup 2021-12-14 04:10:16 +01:00
storm Add OptionEntries for Audio 2021-12-14 04:10:16 +01:00
utils [touch] Adjust controller position after changing resolution 2021-12-21 12:55:30 +01:00
.clang-format .clang-format: Remove duplicate SortIncludes entry 2021-11-28 11:02:27 +00:00
.clang-tidy
appfat.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
appfat.h Allow forcing Hellfire with command-line flags 2021-10-25 13:52:14 +01:00
automap.cpp Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
automap.h Overhaul tests 2021-12-16 20:26:51 +00:00
capture.cpp Migrate to libmpq 2021-11-06 23:51:42 +00:00
capture.h
CMakeLists.txt Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
codec.cpp Add missing <cstring> includes 2021-11-28 15:32:36 +00:00
codec.h
control.cpp Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
control.h Overhaul tests 2021-12-16 20:26:51 +00:00
cursor.cpp Overhaul tests 2021-12-16 20:26:51 +00:00
cursor.h Overhaul tests 2021-12-16 20:26:51 +00:00
dead.cpp
dead.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
debug.cpp Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
debug.h add megatiles to tiledata (#3211) 2021-11-06 18:53:53 +01:00
diablo.cpp Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
diablo.h Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
doom.cpp
doom.h
drlg_l1.cpp
drlg_l1.h
drlg_l2.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
drlg_l2.h
drlg_l3.cpp
drlg_l3.h
drlg_l4.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
drlg_l4.h
dthread.cpp
dthread.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
dx.cpp Split up graphics settings initializers 2021-12-21 12:55:30 +01:00
dx.h Split up graphics settings initializers 2021-12-21 12:55:30 +01:00
effects.cpp fix hellfire shareware monk 2021-11-06 17:20:53 +01:00
effects.h Validate player sync 2021-10-12 04:56:30 +02:00
effects_stubs.cpp
encrypt.cpp Overhaul dependency options 2021-12-07 18:32:25 +01:00
encrypt.h
engine.cpp Stip stippled transparency 2021-12-21 12:55:30 +01:00
engine.h Add helpers for checking object type (#3357) 2021-11-06 18:32:52 +01:00
error.cpp Move UiFlags and UiPanels into their own files 2021-11-25 12:22:27 +01:00
error.h
gamemenu.cpp
gamemenu.h
gendung.cpp Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
gendung.h Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
gmenu.cpp Move UiFlags and UiPanels into their own files 2021-11-25 12:22:27 +01:00
gmenu.h
help.cpp help.cpp: Fix -Wunused-const-variable 2021-11-28 10:30:24 +00:00
help.h
hwcursor.cpp Add OptionEntries for Hardware Cursor 2021-12-17 20:12:17 +01:00
hwcursor.hpp Add OptionEntries for Hardware Cursor 2021-12-17 20:12:17 +01:00
init.cpp macOS/iOS: Add resources to the bundle 2021-12-05 20:33:24 +01:00
init.h Overhaul tests 2021-12-16 20:26:51 +00:00
interfac.cpp
interfac.h Reduce use of view globals in game menu 2021-11-20 21:57:32 +01:00
inv.cpp Restrict dropping items to adjacent tiles 2021-12-28 15:56:55 +01:00
inv.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
inv_iterators.hpp Refactor: Use item iterators in 7 more places 2021-10-31 13:28:08 +00:00
itemdat.cpp
itemdat.h
items.cpp Correct false positives translation warnings 2021-12-25 11:10:57 +01:00
items.h Use std::string in PrintItemPower 2021-12-13 01:02:07 +01:00
lighting.cpp Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
lighting.h Overhaul tests 2021-12-16 20:26:51 +00:00
loadsave.cpp Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
loadsave.h Overhaul tests 2021-12-16 20:26:51 +00:00
main.cpp Link SDL2::SDLmain correctly 2021-11-27 20:36:11 +01:00
menu.cpp Implement settings menu 2021-11-24 09:31:39 +01:00
menu.h
minitext.cpp Move UiFlags and UiPanels into their own files 2021-11-25 12:22:27 +01:00
minitext.h
misdat.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
misdat.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
missiles.cpp Fix MonsterMHit check for petrified monsters 2021-11-19 03:40:00 +01:00
missiles.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
monstdat.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
monstdat.h
monster.cpp Initialize golems before objects 2021-12-12 19:16:59 +01:00
monster.h Initialize golems before objects 2021-12-12 19:16:59 +01:00
movie.cpp Consistently trigger menu/movie transitions on mouse up instead of down 2021-12-28 04:34:26 +01:00
movie.h
msg.cpp Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
msg.h Make FindGetItem return an index into ActiveItems 2021-11-23 19:08:41 +01:00
multi.cpp Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
multi.h Overhaul tests 2021-12-16 20:26:51 +00:00
nthread.cpp clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
nthread.h Overhaul tests 2021-12-16 20:26:51 +00:00
objdat.cpp fix collision of bodies in butcher chamber/hell 2021-12-14 08:20:25 +01:00
objdat.h
objects.cpp Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
objects.h Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
options.cpp Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
options.h Change Keymapper to OptionCategory/OptionEntry 2021-12-23 00:26:12 +01:00
pack.cpp Perform item requirement check when entering vendors 2021-12-13 00:56:38 +01:00
pack.h Add comments so clang-format doesn't complain about eol space 2021-11-25 10:37:43 +00:00
palette.cpp Stip stippled transparency 2021-12-21 12:55:30 +01:00
palette.h Optimize DrawHalfTransparentBlendedRectTo 2021-11-07 19:18:49 +00:00
path.cpp Overhaul tests 2021-12-16 20:26:51 +00:00
path.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
pfile.cpp Performce UTF8 aware limited string copies 2021-11-22 03:28:51 +01:00
pfile.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
player.cpp Do not send CMD_REMSHIELD when another player runs out of mana 2021-12-19 22:11:03 +01:00
player.h Overhaul tests 2021-12-16 20:26:51 +00:00
plrmsg.cpp Fixed Event Messages color 2021-12-26 12:18:13 +01:00
plrmsg.h Chat Interface Revision (#3840) 2021-12-25 10:11:42 +00:00
portal.cpp Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
portal.h Validate additional network messages 2021-10-06 21:47:03 +02:00
quests.cpp Add all (boolean) Game Settings to Settingsmenu (#3616) 2021-11-26 23:43:46 +01:00
quests.h Overhaul tests 2021-12-16 20:26:51 +00:00
restrict.cpp
restrict.h
scrollrt.cpp Move UiFlags and UiPanels into their own files 2021-11-25 12:22:27 +01:00
scrollrt.h debug fps command (#3418) 2021-11-07 11:23:31 +00:00
setmaps.cpp Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
setmaps.h Move ObjectAtPosition to objects.cpp and make it return a pointer 2021-12-28 16:01:37 +01:00
sha.cpp Add missing <cstring> includes 2021-11-28 15:32:36 +00:00
sha.h
sound.cpp Add OptionEntries for Audio 2021-12-14 04:10:16 +01:00
sound.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
sound_stubs.cpp
spelldat.cpp
spelldat.h Validate spell network messages 2021-10-04 19:22:34 +02:00
spells.cpp Add IsWallSpell helper 2021-12-07 12:00:52 +01:00
spells.h Add IsWallSpell helper 2021-12-07 12:00:52 +01:00
stores.cpp Use std::string in PrintItemPower 2021-12-13 01:02:07 +01:00
stores.h Overhaul tests 2021-12-16 20:26:51 +00:00
sync.cpp sync monster mWhoHit and hitpoints 2021-11-06 19:03:05 +01:00
sync.h Validate CMD_SYNCDATA (#2968) 2021-09-30 15:38:10 +02:00
textdat.cpp
textdat.h
themes.cpp Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
themes.h
tmsg.cpp Mark network pointers as const 2021-10-02 20:30:16 +02:00
tmsg.h Mark network pointers as const 2021-10-02 20:30:16 +02:00
town.cpp Enable opening Hive and Crypt using gamepad 2021-10-12 04:40:43 +02:00
town.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
towners.cpp Remove CowOffsets, always treat cows as 4 tile sprites 2021-12-14 08:17:19 +01:00
towners.h clang-format all files in {Source,test}/ 2021-11-24 23:44:12 +01:00
track.cpp fix bounds checks (#3237) 2021-10-24 17:20:04 +02:00
track.h
trigs.cpp Fix clicking on triggers on the lower part of the screen 2021-12-23 04:50:56 +01:00
trigs.h