Commit Graph
137148 Commits
Author SHA1 Message Date
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
Nipun Garg 0410e48caf HDB: Call DrawMan::drawSky from hdb.cpp 2019-09-03 17:16:46 +02:00
Nipun Garg 55fd11ff6e HDB: Complete setSky() and drawSky() 2019-09-03 17:16:46 +02:00
Nipun Garg 852182be20 HDB: Fill out draw3DStars() and draw3DStarsLeft() 2019-09-03 17:16:46 +02:00
Nipun Garg 833a3ea8e0 HDB: Add fillScreen() for Fill operation 2019-09-03 17:16:46 +02:00
Nipun Garg 419a34f1d0 HDB: Change filenames to full-game versions 2019-09-03 17:16:46 +02:00
Nipun Garg 1ceeff0385 HDB: Add the Detector entry for hyperspace.mpc 2019-09-03 17:16:46 +02:00
Nipun Garg d782876522 HDB: Fix C++11 usage in _format 2019-09-03 17:16:46 +02:00
Nipun Garg 5f00731ff6 HDB: Add drawSky, drawStars and drawStarsLeft 2019-09-03 17:16:45 +02:00
Eugene Sandulenko 42d0ba46c6 HDB: Added debug output to the map loading 2019-09-03 17:16:45 +02:00
Nipun Garg 2975f5222f HDB: Add _starField to hold PIC_STARX graphics 2019-09-03 17:16:45 +02:00
Nipun Garg 078004ab71 HDB: Add _globalSurface for Fill+other operations 2019-09-03 17:16:45 +02:00
Nipun Garg 1acf595a94 HDB: Abstract the common PixelFormat to hdb.h 2019-09-03 17:16:45 +02:00
Eugene Sandulenko bc8369a984 JANITORIAL: Remove trailing whitespaces 2019-09-03 17:16:45 +02:00
Eugene Sandulenko 4b463bcc29 HDB: Skip sky tiles 2019-09-03 17:16:45 +02:00
Eugene Sandulenko 86c6d23b5d HDB: Added debug output to tile lookup 2019-09-03 17:16:45 +02:00
Eugene Sandulenko 502d55d97e HDB: Initialise TileLookup structure 2019-09-03 17:16:45 +02:00
Nipun Garg 48238b8c3c HDB: Remove redundant modulo 2019-09-03 17:16:45 +02:00
Nipun Garg fa88801290 HDB: Call _map->draw() from hdb.cpp 2019-09-03 17:16:45 +02:00
Nipun Garg 35a351ce90 HDB: Add stubbed-out Map::draw function 2019-09-03 17:16:45 +02:00
Nipun Garg 9b220dba13 HDB: Modify Picture/Tile to use a Managed Surface 2019-09-03 17:16:45 +02:00