Commit Graph
219 Commits
Author SHA1 Message Date
Nipun Garg 11b19dd013 HDB: Call moveEnts() 2019-09-03 17:16:57 +02:00
Nipun Garg 8cdd69ba41 HDB: Call drawDialog() from hdb.cpp 2019-09-03 17:16:57 +02:00
Nipun Garg a53b2c9550 HDB: Call animateTargets() from hdb.cpp 2019-09-03 17:16:57 +02:00
Eugene Sandulenko 0cd1ffc34e HDB: Fix crash during initialisation 2019-09-03 17:16:56 +02:00
Nipun Garg 28ab1f9549 HDB: Add and init the _window subsystem 2019-09-03 17:16:56 +02:00
Nipun Garg b351bec867 HDB: Call initAnimInfo() from hdb.cpp 2019-09-03 17:16:56 +02:00
Nipun Garg b6520708a5 HDB: Draw Entities, Foregrounds and Gratings 2019-09-03 17:16:54 +02:00
Nipun Garg b913a3632d HDB: Add time-keeping functions 2019-09-03 17:16:54 +02:00
Nipun Garg 15d964afec HDB: Add _actionMode and its getter-setters 2019-09-03 17:16:51 +02:00
Eugene Sandulenko b449bd6fe2 HDB: Hid some annoying STUB warnings 2019-09-03 17:16:51 +02:00
Nipun Garg cf7c1f35e6 HDB: Remove 'Process Gettable Item' stub 2019-09-03 17:16:50 +02:00
Nipun Garg 20cc6d4b47 HDB: Remove lookAtEntity stub from useEntity 2019-09-03 17:16:50 +02:00
Nipun Garg 977a264462 HDB: Add functionality to useEntity() 2019-09-03 17:16:50 +02:00
Nipun Garg 5066349297 HDB: Add stubbed useEntity() 2019-09-03 17:16:49 +02:00
Nipun Garg 1457383df2 HDB: Add paint() to draw static images 2019-09-03 17:16:48 +02:00
Nipun Garg 64760a08bb HDB: Load _map outside of the game loop 2019-09-03 17:16:48 +02:00
Nipun Garg 55d87676f2 HDB: Remove unreachable return statements 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 0d3e719b8d HDB: Add the AI class to hdb.cpp 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
Eugene Sandulenko 38f11eef39 HDB: Do not blit whole screen 2019-09-03 17:16:47 +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 0410e48caf HDB: Call DrawMan::drawSky from hdb.cpp 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 d782876522 HDB: Fix C++11 usage in _format 2019-09-03 17:16:46 +02:00
Nipun Garg 1acf595a94 HDB: Abstract the common PixelFormat to hdb.h 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 b2c4be43b3 HDB: Modify hdb.cpp to use Tile/Picture's draw() 2019-09-03 17:16:45 +02:00
Nipun Garg a4972ee381 HDB: Add kScreenWidth and kScreenHeight enums 2019-09-03 17:16:45 +02:00
Nipun Garg 714d7ed4a0 HDB: Add the Common::RandomSource _rnd 2019-09-03 17:16:45 +02:00
Nipun Garg f489a466f7 HDB: Add _drawMan to hdb.cpp 2019-09-03 17:16:44 +02:00
Nipun Garg d1705bc442 HDB: Replace the map in hdb.cpp with _map 2019-09-03 17:16:44 +02:00
Nipun Garg 19eefe2cea HDB: Fix variables according to Naming Conventions 2019-09-03 17:16:44 +02:00
Nipun Garg 500f747f07 HDB: Create and load a Map in hdb.cpp 2019-09-03 17:16:44 +02:00
Nipun Garg 8e62d001fc HDB: Load the mapHeader in loadMap(...) 2019-09-03 17:16:44 +02:00
Nipun Garg c846026ef2 HDB: Setup loadMap call in hdb.cpp 2019-09-03 17:16:44 +02:00
Nipun Garg 12a9036dd6 HDB: Add scriptPatch and add in sanitizeScript 2019-09-03 17:16:43 +02:00
Nipun Garg 58a645dadb HDB: Test the test.lua file in the data file dir 2019-09-03 17:16:43 +02:00
Eugene Sandulenko fcdebdc015 JANITORIAL: Whitespace fixes 2019-09-03 17:16:43 +02:00
Nipun Garg 472d5f2104 HDB: Call lua->init() before initScript 2019-09-03 17:16:43 +02:00
Nipun Garg 538ead52bb HDB: Fix allocation problem with g_hdb 2019-09-03 17:16:43 +02:00
Nipun Garg ccce71fabb HDB: Load MAP00_DEMO_LUA 2019-09-03 17:16:43 +02:00
Nipun Garg 9522bfdb01 HDB: Remove LuaScript initialization from hdb.cpp 2019-09-03 17:16:42 +02:00
Nipun Garg ba1081b87c HDB: Correct the include paths from X.h to hdb/X.h 2019-09-03 17:16:42 +02:00
Nipun Garg 79ebe8927e HDB: Add *g_hdb to access the subsystems 2019-09-03 17:16:42 +02:00
Nipun Garg 4b8f7f339e HDB: Add stripComments() to strip C-style comments
There are a few C-style comments present in the
Lua files
2019-09-03 17:16:42 +02:00
Nipun Garg 094bf4c06b HDB: Modify setGameFlags() to getGameFlags() 2019-09-03 17:16:42 +02:00
Nipun Garg bc638cf251 HDB: Add LuaScript::initScript
It creates a new Lua environment whenever a new
Lua script is loaded
2019-09-03 17:16:42 +02:00
Nipun Garg fd666efd6a HDB: Check if demo version is running 2019-09-03 17:16:42 +02:00
Nipun Garg 708819839d HDB: Test LuaScript::executeFile 2019-09-03 17:16:42 +02:00