Filippos Karapetis
f755311114
priority_first and priority_last are not used by the new drawing code, thus the new code didn't handle priority changes by kGraph()
...
svn-id: r45658
2009-11-04 11:52:11 +00:00
Filippos Karapetis
f5d1ca32f2
Fixed compilation when INCLUDE_OLDGFX is not defined
...
svn-id: r45657
2009-11-04 11:48:17 +00:00
Filippos Karapetis
7d00c4a7f1
Moved the audio CD handling code inside the AudioPlayer class. Some cleanup
...
svn-id: r45656
2009-11-04 11:22:46 +00:00
Filippos Karapetis
2dbf6662fc
Moved the sound sync code inside the AudioPlayer class
...
svn-id: r45655
2009-11-04 10:20:25 +00:00
Filippos Karapetis
611f5dd95f
Moved sound sync related variables inside the AudioPlayer class and fixed compilation
...
svn-id: r45654
2009-11-04 09:49:28 +00:00
Filippos Karapetis
597524b255
Moved most of the code for playing sound effects and speech into a separate class
...
svn-id: r45653
2009-11-04 09:36:18 +00:00
Filippos Karapetis
66d3540f2c
Cleanup
...
svn-id: r45652
2009-11-04 09:31:35 +00:00
Paul Gilbert
a6f1280fcc
Added support for loading the game's object list
...
svn-id: r45651
2009-11-04 08:38:32 +00:00
Robert Špalek
f147fbb936
Properly animate the last phase of the walk before running callbacks
...
svn-id: r45649
2009-11-04 04:27:31 +00:00
Robert Špalek
14f2685134
Implemented and debugged the walking framework.
...
The hero does not walk yet (it still teleports to the target immediately),
but that is just because the actual walking algorithm is left trivial first.
However, the main game loop, callbacks, and waiting all already work with
the general framework.
svn-id: r45648
2009-11-04 00:42:37 +00:00
Robert Špalek
930910fe5c
Created walking-callback infrastructure and converted the code to use it
...
svn-id: r45644
2009-11-03 22:13:37 +00:00
Matthew Hoops
49a8462c5b
Capitalize the word Sequel in The 11th Hour's title.
...
svn-id: r45643
2009-11-03 21:51:24 +00:00
Robert Špalek
b506b9f7c2
Removed an old FIXME
...
svn-id: r45642
2009-11-03 21:34:38 +00:00
Robert Špalek
0071829aee
Implement properly stayOn instead of using walkOn
...
svn-id: r45641
2009-11-03 21:30:24 +00:00
Robert Špalek
9ad5e7461f
Let setPath() store path with pixel precision, and update the map sprite when reloaded
...
svn-id: r45640
2009-11-03 21:05:26 +00:00
Max Horn
0fd0d1a09f
SCI: Fix warning (declaration of 'FOO' shadows a member of 'this')
...
svn-id: r45637
2009-11-03 20:47:10 +00:00
Martin Kiewitz
7bed008f8e
SCI/newgui: fixes for statusbar and transitions, so menubar shows up in intro of qfg1ega
...
svn-id: r45635
2009-11-03 19:43:21 +00:00
Martin Kiewitz
d758538eaa
SCI/newgui: SciGuiMenu partially implemented
...
svn-id: r45634
2009-11-03 19:33:31 +00:00
Filippos Karapetis
34aaac37fc
Removed some more hacks for accessing the segment manager
...
svn-id: r45631
2009-11-03 14:24:47 +00:00
Filippos Karapetis
74dba071b8
Fixed the deletion of cursorBitmap
...
svn-id: r45630
2009-11-03 14:20:57 +00:00
Filippos Karapetis
ff9c4908a7
Fixed a crash when loading in the old GUI
...
svn-id: r45628
2009-11-03 11:32:23 +00:00
Filippos Karapetis
f0c628cc3c
Remove the SegManager-related hacks for the selector defines, as the segMan parameter is explicit now
...
svn-id: r45626
2009-11-03 09:01:12 +00:00
Filippos Karapetis
9ec6208e2a
Plugged a memory leak
...
svn-id: r45625
2009-11-03 08:23:58 +00:00
Filippos Karapetis
bf8f8acb47
Don't keep a reference to SegManager, as it gets deleted when loading. Fixes a crash when loading games
...
svn-id: r45624
2009-11-03 08:23:02 +00:00
Robert Špalek
0d5627d8f1
Run the path obliqueing process repeatedly until it converges.
...
svn-id: r45623
2009-11-03 03:38:28 +00:00
Robert Špalek
75bf8237b0
Greatly improved the quality of obliqueing the shortest path.
...
The current algorithm is much better than the original player'ss one and it
find really nice curved paths.
Also, started preparing interface for actually walking along this path.
svn-id: r45622
2009-11-03 03:24:59 +00:00
Max Horn
e959ef33e5
TINSEL: Small correction to the previous hotfix for _vm->_config crash
...
svn-id: r45621
2009-11-02 23:48:21 +00:00
Max Horn
d10fe42416
TINSEL: Fix regression caused by the introduction of _vm->_config; proper fix will be introduced later, when dialogs.cpp gets objectified
...
svn-id: r45620
2009-11-02 23:42:30 +00:00
Walter van Niftrik
7f8a8732a1
SCI: Fix hoyle hack
...
svn-id: r45619
2009-11-02 23:06:30 +00:00
Max Horn
26981a5ffc
TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame
...
svn-id: r45618
2009-11-02 21:57:16 +00:00
Max Horn
5cf868b757
TINSEL: Turn config code into a simple C++ class
...
svn-id: r45617
2009-11-02 21:56:29 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
3a2833867f
SCI: Fix warning about unused variable
...
svn-id: r45614
2009-11-02 20:33:34 +00:00
Martin Kiewitz
abf63e1be9
SCI/newgui: Removed GuiCast structure
...
svn-id: r45613
2009-11-02 19:50:17 +00:00
Martin Kiewitz
10a902735a
SCI: SciGuiMenu created, kMenu-related stuff now using SciGui
...
svn-id: r45612
2009-11-02 17:59:19 +00:00
Robert Špalek
ab3eb81dfb
Little clean-up after the refactoring.
...
svn-id: r45609
2009-11-02 05:37:17 +00:00
Robert Špalek
6de74446ab
Split loop() into several cleaned helper methods
...
svn-id: r45608
2009-11-02 05:31:03 +00:00
Robert Špalek
c45f0343f4
Refactored running loop().
...
- shouldExitLoop() is a bool again and introduced new flag isReloaded() instead
of adding special hacky value 2
- loop() accepts 2 parameters: loop substatus and shouldExit flag, because each
caller previously had to set and restore these manually. loop() now also
tests whether the substatuses are properly nested. reordered the
loop-exitting code.
- renamed loop substatuses to logical names
- enterNewRoom() returns bool whether loop() should continue so that start()
doesn't have to test and clear shouldEndProgram(). it doesn't need
force_reload as a parameter anymore.
- dialog selections use new inner substatus instead of outer substatus, for
consistency
svn-id: r45607
2009-11-02 02:28:43 +00:00
Robert Špalek
9f711bd0ce
Commented the rest of the loop() logic
...
svn-id: r45606
2009-11-01 23:20:46 +00:00
Robert Špalek
9ad86a800a
Fix SIGSEGV when quitting the game during playing sounds
...
svn-id: r45605
2009-11-01 23:20:19 +00:00
Robert Špalek
f77446a500
Commented on loop() before refactoring.
...
svn-id: r45604
2009-11-01 23:04:56 +00:00
Robert Špalek
0470c25881
Small bugfix in path-finding
...
svn-id: r45602
2009-11-01 21:19:39 +00:00
Martin Kiewitz
f2dbd3357f
SCI/newgui: kBaseSetter ported from gregs engine, kq5 pathfinding works now correctly
...
svn-id: r45601
2009-11-01 21:14:33 +00:00
Robert Špalek
504973a073
One more clean-up of the path-finding code
...
svn-id: r45599
2009-11-01 19:30:51 +00:00
Robert Špalek
170918afab
Cleaned up the walking code.
...
PathVertex replaced by Common::Point. Do not update the path sprites if
not in the debugging mode.
svn-id: r45598
2009-11-01 19:22:41 +00:00
Robert Špalek
c1cc230e4b
Debugged computation and displaying of optimal walking paths
...
svn-id: r45597
2009-11-01 12:57:06 +00:00
Robert Špalek
5c7a120471
Add methods to draw computed walking paths.
...
svn-id: r45596
2009-11-01 10:58:34 +00:00
Robert Špalek
7927196b3f
Fix mistakenly ordered flushing revealed by the last commit
...
svn-id: r45595
2009-11-01 10:15:48 +00:00
Robert Špalek
f91c89560f
Get rid of doubling memory allocation and a lot of copying.
...
The Sprite class points to the original buffer (which is cached in the memory
thanks to BArchive machinery) instead of allocating its own buffer and
copying the source there.
svn-id: r45594
2009-11-01 10:03:37 +00:00
Yotam Barnoy
b3eef9e066
AGOS Simon1 Windows fix. Fixed careless use of setChar function.
...
svn-id: r45592
2009-11-01 09:39:16 +00:00