Commit Graph

1005 Commits

Author SHA1 Message Date
Nipun Garg
de7b30a23c HDB: Add queryInventoryTypeSlot() 2019-09-03 17:17:19 +02:00
Nipun Garg
fe09a9c09c HDB: Initialize Weapon variables 2019-09-03 17:17:19 +02:00
Nipun Garg
f4e2fbcbc7 HDB: Add missing Gfx variable and Weapon functions 2019-09-03 17:17:19 +02:00
Nipun Garg
4216aa965c HDB: Unstub Sound Lua stubs 2019-09-03 17:17:19 +02:00
Nipun Garg
ff5b6d830a HDB: Add _sound stubs 2019-09-03 17:17:19 +02:00
Nipun Garg
e0f49e8aee HDB: Add cineFunction() 2019-09-03 17:17:19 +02:00
Nipun Garg
2f893eeadd HDB: Add cineRemoveEntity() 2019-09-03 17:17:19 +02:00
Nipun Garg
e1fbaaea2b HDB: Add cinematic functions for Pic 2019-09-03 17:17:19 +02:00
Nipun Garg
79a4a37e8d HDB: Initialize Weapon Gfx 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
f8769966f1 HDB: Fix getRandomNumber usage 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
ac9a62da03 HDB: Fix getRandomNumber() usage 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
8c19637727 HDB: Fix getRandomNumber() usage 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
ac50b10549 HDB: Fix getRandomNumber() usage in menu.cpp 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
74d0c5daed HDB: Fix Gfx::updateVideo() 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
8c48bf972d HDB: Fix Gfx::updateFade() 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
0a291d028c HDB: Complete AI::restartSystem() 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
62a6a36463 HDB: Complete Map::restartSystem() 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
5fa5f6fb39 HDB: Fix _mapLoaded flag handling 2019-09-03 17:17:19 +02:00
Eugene Sandulenko
614fc61254 HDB: Consistent memory management for map explosions 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
f83f965462 HDB: Complete AI::checkPlayerCollision() 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
35ead09d75 HDB: Complete AI::drawLevel2Ents() 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
2be5c59d95 HDB: Complete checkPlayerTileCollision() 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
a35cf6cb93 HDB: Added SetDebug/GetDebug, no relevant functionality 2019-09-03 17:17:18 +02:00
Nipun Garg
c5d1ea304b HDB: Unstubbing updateVideo() 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
1feb91b2f8 HDB: Simplify bootparam processing 2019-09-03 17:17:18 +02:00
Nipun Garg
0cd4f43862 HDB: Unstub updateVideo() 2019-09-03 17:17:18 +02:00
Nipun Garg
c0777f5a03 HDB: Add missing paint() call 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
9903b335e1 HDB: Proper memory handling for map features 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
24468bf630 HDB: Fix warnings 2019-09-03 17:17:18 +02:00
Nipun Garg
812a8c7c9d HDB: Remove redundant warning 2019-09-03 17:17:18 +02:00
Nipun Garg
c5bc56b331 HDB: Add Loading Screen 2019-09-03 17:17:18 +02:00
Nipun Garg
190b550caa HDB: Replace original color functions
With the ones from Graphics::PixelFormat
2019-09-03 17:17:18 +02:00
Nipun Garg
0bd8e53f88 HDB: Unstub DirectX Flip 2019-09-03 17:17:18 +02:00
Nipun Garg
b052946c61 HDB: Add mode-select to the level-select
Add +100 to the level num to access the level in
Action Mode
2019-09-03 17:17:18 +02:00
Eugene Sandulenko
792333b6cc HDB: Show cursor in the main menu 2019-09-03 17:17:18 +02:00
Nipun Garg
6c5193c71c HDB: Init _mstoneGfx and replace strings 2019-09-03 17:17:18 +02:00
Nipun Garg
f27674199b HDB: Clear the Persistent variables 2019-09-03 17:17:18 +02:00
Nipun Garg
1f7e179218 HDB: Unstub drawSnow() 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
1874674364 HDB: More debug for save/load code 2019-09-03 17:17:18 +02:00
Eugene Sandulenko
a869eb00a0 HDB: Restore bootparam and save/load from the command line funcitonality 2019-09-03 17:17:18 +02:00
Nipun Garg
a7e17c07f7 HDB: Remove redundant warnings 2019-09-03 17:17:18 +02:00
Nipun Garg
abe99e332e HDB: Unstub updateFade() 2019-09-03 17:17:18 +02:00
Nipun Garg
8f83631a3b HDB: Add macros for RGB-565 conversions 2019-09-03 17:17:18 +02:00
Nipun Garg
bcaf795b59 HDB: Fix out-of-bounds access bug 2019-09-03 17:17:17 +02:00
Nipun Garg
d8f454dfe1 HDB: Initialize Map member variables 2019-09-03 17:17:17 +02:00
Nipun Garg
eb7e3582ab HDB: Disable the command-line level-select 2019-09-03 17:17:17 +02:00
Nipun Garg
b032068417 HDB: Add HDBGame::start() and remove AI::clearP...
...ersistent() placeholder
2019-09-03 17:17:17 +02:00
Nipun Garg
ee9de9157c HDB: Add Menu calls 2019-09-03 17:17:17 +02:00
Nipun Garg
f5b9d417b7 HDB: Set and Draw Bonus Stars 2019-09-03 17:17:17 +02:00
Nipun Garg
58512d2123 HDB: Add Bonus Star functions 2019-09-03 17:17:17 +02:00
Nipun Garg
5b4602fdbe HDB: Set _menuKey 2019-09-03 17:17:17 +02:00
Nipun Garg
611041701e HDB: Unstub processInput() 2019-09-03 17:17:17 +02:00
Nipun Garg
bb6c18496f HDB: Add _menuKey 2019-09-03 17:17:17 +02:00
Nipun Garg
a510482d64 HDB: Add stubs in Sound and Input 2019-09-03 17:17:17 +02:00
Nipun Garg
d5a779168f HDB: Add Pause Button 2019-09-03 17:17:17 +02:00
Eugene Sandulenko
cf5863c794 HDB: Filter out more Lua globals from saving 2019-09-03 17:17:17 +02:00
Nipun Garg
23239d54f6 HDB: Unstub drawToggle, drawSlider, drawWarpScreen 2019-09-03 17:17:17 +02:00
Nipun Garg
a8877bce1b HDB: Add drawNebula(), drawRocketsAndSelections() 2019-09-03 17:17:17 +02:00
Eugene Sandulenko
fe309b1456 HDB: Fix save/loading of inventory 2019-09-03 17:17:17 +02:00
Eugene Sandulenko
e7016e52a9 HDB: Refarcot entity save/loading into separate methods 2019-09-03 17:17:17 +02:00
Eugene Sandulenko
93155c6433 HDB: Fix Window::loadSaveFile() 2019-09-03 17:17:17 +02:00
Nipun Garg
5cb46f6246 HDB: Add Menu functions and other stubs 2019-09-03 17:17:17 +02:00
Nipun Garg
9fcb307d1c HDB: Add isVoiceless() 2019-09-03 17:17:17 +02:00
Nipun Garg
69e4668422 HDB: Add centerPrint() 2019-09-03 17:17:17 +02:00
Nipun Garg
6f4e80b836 HDB: Add stubbed Sound functions 2019-09-03 17:17:17 +02:00
Nipun Garg
29d1c96f0e HDB: Add startTitle() and drawTitle() 2019-09-03 17:17:17 +02:00
Nipun Garg
ac4deacf50 HDB: Unstub fillGameSaveSlots() 2019-09-03 17:17:16 +02:00
Nipun Garg
40765c4e9b HDB: Add Save struct and _saveHeader 2019-09-03 17:17:16 +02:00
Nipun Garg
4c20c8be12 HDB: Add Sine and Cosine table 2019-09-03 17:17:16 +02:00
Nipun Garg
0ae4cb1ea7 HDB: Shift HDB::save() and HDB::loadSaveFile...
...to saveload.cpp
2019-09-03 17:17:16 +02:00
Nipun Garg
c00223a6e9 HDB: Add stubbed songPlaying() and startMusic() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
6c0684cbba HDB: Added missing calls to Map::Map::loadSaveFile() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
538ab04493 HDB: Added missing calls to loadGameState() 2019-09-03 17:17:16 +02:00
Nipun Garg
9d9a1b6c0f HDB: Add readConfig(), writeConfig() and Cheating 2019-09-03 17:17:16 +02:00
Nipun Garg
a8b4749c7e HDB: Add Input::assignKey(), LuaScript::isValid() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
38bdb36b23 HDB: Finish implementation of Lua dofile() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
d0b5e0fbc7 HDB: Remove non-functioning code 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
6fe1d65ca7 HDB: Added initial version for Lua dofile() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
42edeb4114 HDB: Fix AI::loadSaveFile() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
458646981f HDB: Fix Window::loadSaveFile() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
f544c83def HDB: Allocate memory on loading 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
168921d7d7 HDB: Added debug output to save/load code 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
2b46fcf06d HDB: Properly process non-existent save loading 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
8403960c99 HDB: Added more code for loading save states from the command line 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
c71426e2f8 HDB: Fix warnings 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
d12d3ee647 HDB: Proper prototype for saveGameState() 2019-09-03 17:17:16 +02:00
Eugene Sandulenko
6e0e4411a1 HDB: Removed useless warning 2019-09-03 17:17:16 +02:00
Nipun Garg
b1cbf1aeab HDB: Add subbed Menu functions 2019-09-03 17:17:16 +02:00
Nipun Garg
9b43fbfa9f HDB: Save/Load _timePlayed 2019-09-03 17:17:16 +02:00
Nipun Garg
b503e2ba71 HDB: Add missing code in changeGameState() 2019-09-03 17:17:16 +02:00
Nipun Garg
00b53b48a9 HDB: Add stubbed functions 2019-09-03 17:17:15 +02:00
Nipun Garg
d5a32a2b4e HDB: Add missing time code 2019-09-03 17:17:15 +02:00
Nipun Garg
963043f3b2 HDB: Shift Save/Load functions to saveload.cpp 2019-09-03 17:17:15 +02:00
Nipun Garg
ac9f2d634b HDB: Add loadGame() and Sound::stopMusic() 2019-09-03 17:17:15 +02:00
Nipun Garg
ec0bd5e667 HDB: Add global patch for io, os, sctrings 2019-09-03 17:17:15 +02:00
Eugene Sandulenko
e166f4e3ff HDB: And even more script patches 2019-09-03 17:17:15 +02:00
Eugene Sandulenko
cbbe538e5d HDB: More Global script patches 2019-09-03 17:17:15 +02:00
Nipun Garg
b7b8b23d29 HDB: Add openFile, write, closeFile Lua functions 2019-09-03 17:17:15 +02:00
Nipun Garg
6e60d6a287 HDB: Unstub saveGlobal, loadGlobal, purgeGlobals 2019-09-03 17:17:15 +02:00
Eugene Sandulenko
2315a05ad3 HDB: Fix calling Lua save/load 2019-09-03 17:17:15 +02:00
Nipun Garg
85a8209d97 HDB: Add save/load for the Lua Globals environment 2019-09-03 17:17:15 +02:00
Nipun Garg
961f3b46f0 HDB: Add structs and functions for Lua Globals 2019-09-03 17:17:15 +02:00
Nipun Garg
d510e3efe5 HDB: Unstub save/load _animTargets[i].gfxList 2019-09-03 17:17:15 +02:00
Nipun Garg
910c1ed36d HDB: Unstub Load/Save _ents and _floats 2019-09-03 17:17:15 +02:00
Nipun Garg
17eaafacfd HDB: Unstub code for saving and loading Gfx 2019-09-03 17:17:15 +02:00
Nipun Garg
ebbee5cef4 HDB: Add FuncLookUp structs and functions 2019-09-03 17:17:15 +02:00
Nipun Garg
fffa7bd1a2 HDB: Unstub _ai->save() call 2019-09-03 17:17:15 +02:00
Eugene Sandulenko
56f0e3f930 HDB: Removed useless warning 2019-09-03 17:17:15 +02:00
Eugene Sandulenko
a8a43329bb HDB: Initialise variables 2019-09-03 17:17:14 +02:00
Eugene Sandulenko
a7d78a1b00 HDB: Fix Sky handling
Now sky appears on Map 29
2019-09-03 17:17:14 +02:00
Eugene Sandulenko
168ca5fc0d HDB: Used transparent alpha blitting 2019-09-03 17:17:14 +02:00
Nipun Garg
b4db168f2a HDB: Add AI save() and loadSaveFile()
There are stubs for Pointers and Function Pointers
2019-09-03 17:17:14 +02:00
Nipun Garg
32465a119d HDB: Modify InvEnt to have AIEntity as member 2019-09-03 17:17:14 +02:00
Nipun Garg
69303997ae HDB: Unstub double reads and writes 2019-09-03 17:17:14 +02:00
Nipun Garg
82fe644f54 HDB: Remove unnecessary functions 2019-09-03 17:17:14 +02:00
Eugene Sandulenko
ce6b62d896 HDB: Turn _gratinds[] and _foregrounds[] into structs from pointers 2019-09-03 17:17:14 +02:00
Nipun Garg
d2df277403 HDB: Add saveSlot, loadSlot, saveGame and loadGame 2019-09-03 17:17:14 +02:00
Nipun Garg
0a6d4c042f HDB: Fix endian issues 2019-09-03 17:17:14 +02:00
Nipun Garg
2990f6cff5 HDB: Fix endian issues 2019-09-03 17:17:14 +02:00
Nipun Garg
8b806991b9 HDB: Add save and loadSave functions
For Tile and Pic
2019-09-03 17:17:14 +02:00
Nipun Garg
6f472b60a6 HDB: Fix Endian reading issues 2019-09-03 17:17:14 +02:00
Nipun Garg
2eb9bdfee8 HDB: Add stubbed Sound save() and loadSaveFile() 2019-09-03 17:17:14 +02:00
Nipun Garg
55a58747e2 HDB: Add Gfx save() and loadSaveFile() 2019-09-03 17:17:14 +02:00
Nipun Garg
c819a79c9b HDB: Add Window save() and loadSaveFile() 2019-09-03 17:17:14 +02:00
Eugene Sandulenko
6559b71819 HDB: Fix removeBGTileAnimation() and removeFGTileAnimation() implementations 2019-09-03 17:17:14 +02:00
Nipun Garg
cdf8d2548f HDB: Remove unreferenced variable 2019-09-03 17:17:13 +02:00
Nipun Garg
40879e47dd HDB: Fix Name Change 2019-09-03 17:17:13 +02:00
Nipun Garg
8d57db2572 HDB: Add Map save() and loadSaveFile() 2019-09-03 17:17:13 +02:00
Nipun Garg
06c87e518c HDB: Add HDBGame save() and load() 2019-09-03 17:17:13 +02:00
Nipun Garg
3fc69963f4 HDB: Add setInMapName() and related data 2019-09-03 17:17:13 +02:00
Nipun Garg
7cb5f460c0 HDB: Add member variables to Menu 2019-09-03 17:17:13 +02:00
Nipun Garg
c63e7c838b HDB: Unstub stubs 2019-09-03 17:17:13 +02:00
Eugene Sandulenko
5941748209 HDB: Fixed AI::cineRemoveFromBlitList()
This fixes bug with only 1 manny envelope flying
2019-09-03 17:17:13 +02:00
Eugene Sandulenko
d285201ec8 HDB: Disable skipping manny quest for now 2019-09-03 17:17:13 +02:00
Nipun Garg
f89015a90d HDB: Add Lua functions for _sound 2019-09-03 17:17:13 +02:00
Nipun Garg
9b48e15b8e HDB: Add cinePlayVoice() and cinePlaySound() 2019-09-03 17:17:13 +02:00
Nipun Garg
f6a3eac497 HDB: Add cineStartMap() Lua function 2019-09-03 17:17:13 +02:00
Nipun Garg
373106f896 HDB: Add cineStartMap() 2019-09-03 17:17:13 +02:00
Nipun Garg
a2c9c83b83 HDB: Unstub Window function calls 2019-09-03 17:17:13 +02:00
Nipun Garg
ebea69eceb HDB: Unstub lasers and more 2019-09-03 17:17:13 +02:00
Nipun Garg
0dff3cd8e6 HDB: Unstub Lua Snow functions 2019-09-03 17:17:13 +02:00
Nipun Garg
267ddc8358 HDB: Add turnOnSnow() 2019-09-03 17:17:13 +02:00
Nipun Garg
aed071e5a0 HDB: Add stubbed getMusicVolume() 2019-09-03 17:17:13 +02:00
Nipun Garg
74675ba2d5 HDB: Fix type warning 2019-09-03 17:17:13 +02:00
Nipun Garg
0ca3f5bd7f HDB: Add Bots splitter-comments 2019-09-03 17:17:13 +02:00
Nipun Garg
7caca5d2d0 HDB: Unstub the '#if 0' functions 2019-09-03 17:17:13 +02:00
Eugene Sandulenko
0d2f2f2bf7 HDB: Fix enity lists, and warn on missing files 2019-09-03 17:17:13 +02:00
Nipun Garg
7bf9cc945c HDB: Add Laser functions 2019-09-03 17:17:12 +02:00
Nipun Garg
a27faf35b4 HDB: Add Laser related stubs 2019-09-03 17:17:12 +02:00
Nipun Garg
48546f3c8d HDB: Add laserScan() 2019-09-03 17:17:12 +02:00