Commit Graph
87 Commits
Author SHA1 Message Date
D G Turner cb949044db HDB: Refactor AI Functions to Avoid Incompatible Function Pointer Casts
These warnings were emitted by GCC when -Wcast-function-type was passed.

This fixes these by refactoring so the engine only uses a single function
pointer type with the "extra" parameters always present.
2022-07-23 17:00:23 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko a37e9a8f9a HDB: Replace NULL with nullptr 2020-04-28 09:42:27 +02:00
Eugene Sandulenko 16f1ff13bc HDB: Use Common::strlcpy() everywhere 2020-04-27 18:29:39 +02:00
D G Turner 4be7972561 HDB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-03 22:12:24 +00:00
Strangerke 0344e0adce HDB: Simplify some code 2019-09-19 08:10:49 +02:00
Strangerke 10a74b2e6c HDB: Turn a couple of arrays into static const 2019-09-16 23:11:40 +02:00
D G Turner 7064698b60 HDB: Removed Fixed String Buffer from AI Player Code
This is replaced by simpler Common::String equivalent.
2019-09-14 02:01:57 +01:00
Strangerke b29317c0b0 HDB: Janitorial - Fix some code formatting 2019-09-03 17:17:35 +02:00
Nipun Garg 0ca9c2fbcc HDB: Remove unnecessary warnings 2019-09-03 17:17:34 +02:00
Eugene Sandulenko 67d45170ed HDB: More code differences for demo 2019-09-03 17:17:29 +02:00
Nipun Garg 5ba5a335a1 HDB: Unstub Sound related stubs 2019-09-03 17:17:29 +02:00
Eugene Sandulenko 951943ecec HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
Eugene Sandulenko 810ac81b0f HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
Eugene Sandulenko a0856c6c3a HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
Eugene Sandulenko 91da8c7aab HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko a0817b0b5a HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko 2844b48ac1 HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko 99fc798b2e HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko c3d0f49538 HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko b845e70102 HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Strangerke bcf910470c HDB: Fix some CppCheck warnings in ai-player, ai-use, ai-waypoint and gfx 2019-09-03 17:17:26 +02:00
Nipun Garg d0248243d2 HDB: Refactor getPicGfx(), getTileGfx() and fix...
... memory leaks
2019-09-03 17:17:23 +02:00
Eugene Sandulenko 944dbab7d6 HDB: Fix warning 2019-09-03 17:17:21 +02:00
Nipun Garg fe09a9c09c HDB: Initialize Weapon variables 2019-09-03 17:17:19 +02:00
Eugene Sandulenko 8c19637727 HDB: Fix getRandomNumber() usage 2019-09-03 17:17:19 +02:00
Nipun Garg f5b9d417b7 HDB: Set and Draw Bonus Stars 2019-09-03 17:17:17 +02:00
Nipun Garg 7caca5d2d0 HDB: Unstub the '#if 0' functions 2019-09-03 17:17:13 +02:00
Nipun Garg 478c10a1fb HDB: Unstub aiVortexianAction 2019-09-03 17:17:10 +02:00
Eugene Sandulenko ce06f4eb9e HDB: Fix compilation 2019-09-03 17:17:09 +02:00
Nipun Garg 4622fb3b80 HDB: Unstub playSound calls 2019-09-03 17:17:09 +02:00
Nipun Garg 34b9457adc HDB: Delete functions missing from original 2019-09-03 17:17:09 +02:00
Nipun Garg b8a98fdcfe HDB: Add Vortexian and AI_NONE functions 2019-09-03 17:17:09 +02:00
Nipun Garg bbecaabf32 HDB: Add Monkeystone and GooCup functions 2019-09-03 17:17:09 +02:00
Nipun Garg 169c4d86f6 HDB: Add Transceiver functions 2019-09-03 17:17:08 +02:00
Nipun Garg 7871ad6007 HDB: Add IceBlock, ItemChicken and CabKey 2019-09-03 17:17:08 +02:00
Nipun Garg 70fb0e81cc HDB: Add functions for Magic Egg 2019-09-03 17:17:08 +02:00
Nipun Garg dd53729b81 HDB: Add Dolly Tools, Splicer, Package and Router 2019-09-03 17:17:08 +02:00
Nipun Garg a870b93421 HDB: Add Seed and Soda functions 2019-09-03 17:17:08 +02:00
Nipun Garg c6f4bdc2c1 HDB: Add Keycard functions 2019-09-03 17:17:08 +02:00
Nipun Garg b0b096402c HDB: Add functions for TeaCup, Burger and Cookie 2019-09-03 17:17:08 +02:00
Nipun Garg 5617ec541a HDB: Add Gem functions 2019-09-03 17:17:08 +02:00
Nipun Garg c0e2f9b479 HDB: Add aiSlugSlinger functions 2019-09-03 17:17:08 +02:00
Nipun Garg 7e586c9f21 HDB: Add aiClub functions 2019-09-03 17:17:08 +02:00
Nipun Garg a1fbe844b4 HDB: Add aiRoboStunner functions 2019-09-03 17:17:08 +02:00
Nipun Garg 34f0992c4d HDB: Add aiChicken functions 2019-09-03 17:17:08 +02:00
Nipun Garg 60958086c2 HDB: Add aiGemAttack functions 2019-09-03 17:17:08 +02:00
Nipun Garg d88f4fb7c0 HDB: Add callbackDoorOpenClose() and use function 2019-09-03 17:17:08 +02:00
Nipun Garg 7d08524b77 HDB: Shift Bots stubs to ai-bots.cpp 2019-09-03 17:17:08 +02:00
Nipun Garg dcce09471d HDB: Add Cell related functions 2019-09-03 17:17:07 +02:00