Commit Graph

181 Commits

Author SHA1 Message Date
Nipun Garg
c1511959d7 HDB: Fix argument type in checkParameters 2019-09-03 17:16:48 +02:00
Nipun Garg
c4ac26f341 HDB: Complete the fade stubs in lua-script.cpp 2019-09-03 17:16:48 +02:00
Nipun Garg
e460395f3e HDB: Call the fade Stubs from processCines() 2019-09-03 17:16:48 +02:00
Nipun Garg
f849004886 HDB: Add getter-setter functions for _fadeInfo
Check if the fade is active. Check if the fade is
staying. Turn off the fade.
2019-09-03 17:16:48 +02:00
Nipun Garg
191079fc1e HDB: Add stubbed-out DrawMan::updateFade() 2019-09-03 17:16:48 +02:00
Nipun Garg
604e7e5f63 HDB: Add DrawMan::setFade() 2019-09-03 17:16:48 +02:00
Nipun Garg
70b1013f4c HDB: Add _fadeInfo struct 2019-09-03 17:16:48 +02:00
Nipun Garg
9da76b9f68 HDB: Process cineFadeIn() and cineFadeOut() 2019-09-03 17:16:48 +02:00
Nipun Garg
116d1d7cc8 HDB: Add cineFadeIn() and cineFadeOut() 2019-09-03 17:16:48 +02:00
Nipun Garg
6f82e8fc3d HDB: Move the _map and _ai code into the game loop 2019-09-03 17:16:48 +02:00
Nipun Garg
6a7d3a05d5 HDB: Complete stubs: cineWait + cineWaitUntilDone 2019-09-03 17:16:47 +02:00
Nipun Garg
35b2c26032 HDB: Complete the cineMoveCamera stub 2019-09-03 17:16:47 +02:00
Nipun Garg
c322f7e3d6 HDB: Complete the cineResetCamera stub 2019-09-03 17:16:47 +02:00
Nipun Garg
d67b047306 HDB: Complete the SetCamera stub in lua-script.cpp 2019-09-03 17:16:47 +02:00
Nipun Garg
21af74993a HDB: Fill out the cineStart stub in lua-script.cpp 2019-09-03 17:16:47 +02:00
Nipun Garg
dafe1b6a16 HDB: Add checkParameters() to LuaScript 2019-09-03 17:16:47 +02:00
Nipun Garg
5533de992f HDB: Fix units in delay in processCines - C_WAIT 2019-09-03 17:16:47 +02:00
Nipun Garg
4de75b554e HDB: Add default case to processCines() 2019-09-03 17:16:47 +02:00
Nipun Garg
1db9dab4a3 HDB: Sort module.mk MODULE_OBJS alphabetically 2019-09-03 17:16:47 +02:00
Nipun Garg
0d3e719b8d HDB: Add the AI class to hdb.cpp 2019-09-03 17:16:47 +02:00
Nipun Garg
ca4fb8dd04 HDB: Stub out AI::init() 2019-09-03 17:16:47 +02:00
Nipun Garg
19601855ce HDB: Fill out centerMapXY stubs 2019-09-03 17:16:47 +02:00
Nipun Garg
c661f8663a HDB: Add the centerMapXY to center the map 2019-09-03 17:16:47 +02:00
Nipun Garg
2eacf30d82 HDB: Add getMapBGTileIndex() + getMapFGTileIndex() 2019-09-03 17:16:47 +02:00
Nipun Garg
bb9aeb4248 HDB: Add getter-setter for _mapX and _mapY 2019-09-03 17:16:47 +02:00
Nipun Garg
f9b71cf660 HDB: Process cineWait and cineWaitUntilDone 2019-09-03 17:16:47 +02:00
Nipun Garg
7e728aff4e HDB: Add cineWait() and cineWaitUntilDone() 2019-09-03 17:16:47 +02:00
Nipun Garg
6910430770 HDB: Add processCines to execute the CineCommands 2019-09-03 17:16:47 +02:00
Nipun Garg
0ce230ba7f HDB: Complete the cineStart function 2019-09-03 17:16:47 +02:00
Nipun Garg
6acdc9670a HDB: Add the AI class
The Cinematic variables are defined. cineSetCamera,
cineMoveCamera and cineResetCamera are defined.
cineStart is stubbed out
2019-09-03 17:16:47 +02:00
Nipun Garg
908b9414ec HDB: Call level_loaded Lua function from hdb.cpp 2019-09-03 17:16:47 +02:00
Nipun Garg
2c55d072d3 HDB: Add support to call Lua functions
This allows us to easily to call functions
defined in the Lua scripts.
2019-09-03 17:16:47 +02:00
Eugene Sandulenko
d8cf201ae7 HDB: Fixed order of msmHeader 2019-09-03 17:16:47 +02:00
Eugene Sandulenko
38f11eef39 HDB: Do not blit whole screen 2019-09-03 17:16:47 +02:00
Eugene Sandulenko
166239f78a HDB: Optimise blitting code 2019-09-03 17:16:46 +02:00
Nipun Garg
7df02e4116 HDB: Complete draw3DStarsLeft 2019-09-03 17:16:46 +02:00
Nipun Garg
6d7d109855 HDB: Call fTile->drawMasked from Map::draw 2019-09-03 17:16:46 +02:00
Nipun Garg
147a4e84e7 HDB: Add Tile::drawMasked for masked Blitting 2019-09-03 17:16:46 +02:00
Nipun Garg
c946e1be1a HDB: Implement workaround for edge blitting
copyRectToSurface expects that graphics won't
touch the edge of the screen. Hence, when they do
touch the edge, the draw call is ignored.
2019-09-03 17:16:46 +02:00
Nipun Garg
e267210ec8 HDB: Clip before passing to copyRectToSurface 2019-09-03 17:16:46 +02:00
Nipun Garg
8bc38a67ee HDB: Make _globalSurface Back Buffer
Modify drawMan to use _globalSurface as a copy of
the whole screen
2019-09-03 17:16:46 +02:00
Nipun Garg
5f04136452 HDB: Complete draw3DStars 2019-09-03 17:16:46 +02:00
Nipun Garg
9df5622d1f HDB: Add Picture::drawMasked for masked blitting 2019-09-03 17:16:46 +02:00
Nipun Garg
d1a3dd0847 HDB: Change _mapX and _mapY to hero position 2019-09-03 17:16:46 +02:00
Eugene Sandulenko
ba9d1c6f0a HDB: Lessen noise on the empty tiles 2019-09-03 17:16:46 +02:00
Eugene Sandulenko
1cb7c9b142 HDB: Fix crash with -d5 2019-09-03 17:16:46 +02:00
Nipun Garg
8f8d6782b8 HDB: Fix isSky to return correct skyIndex 2019-09-03 17:16:46 +02:00
Nipun Garg
00022ef0a7 HDB: Change getTileIndex using Common::matchString 2019-09-03 17:16:46 +02:00
Nipun Garg
6fa032a2e1 HDB: Fix the _tileSkyClouds filename 2019-09-03 17:16:46 +02:00
Nipun Garg
57550c1997 HDB: Add assert to check _numTiles 2019-09-03 17:16:46 +02:00