Filippos Karapetis
4723f80fe2
Merged sciw_select_item() and sciw_unselect_item()
...
svn-id: r39689
2009-03-25 16:37:50 +00:00
Filippos Karapetis
34d75e455b
- Renamed gfx/sci_widgets.* to gfx/gfx_gui.*, as these files contain GUI elements mostly, like windows and status bars
...
- Moved kWindowAutoRestore from gfx_widgets.h to gfx_gui.h
svn-id: r39687
2009-03-25 12:52:03 +00:00
Filippos Karapetis
006b2d62af
Changed some flags to enums
...
svn-id: r39685
2009-03-25 12:07:10 +00:00
Joost Peters
67201f6a71
revert yesterday's change -- apparently this different behavior was intentional.
...
svn-id: r39683
2009-03-25 10:04:45 +00:00
Walter van Niftrik
42d67b4a3a
SCI: AvoidPath cleanup.
...
svn-id: r39680
2009-03-25 00:33:31 +00:00
Walter van Niftrik
b85b6929bd
SCI: build fix.
...
svn-id: r39675
2009-03-24 21:18:06 +00:00
Walter van Niftrik
e8b38af014
SCI: Added workaround for broken polygon in LSL1 room 350.
...
svn-id: r39674
2009-03-24 21:03:50 +00:00
Joost Peters
fc9e5b6beb
Fix smaller error introduced in r39671 refactoring (this check used to be "res == 0").
...
Thanks to syke for spotting it.
svn-id: r39673
2009-03-24 19:56:41 +00:00
Max Horn
1e94b9cd3c
SCI: Rewrote vocabulary code to use a Common::HashMap<String,ResultWord>
...
svn-id: r39671
2009-03-24 17:42:12 +00:00
Max Horn
65b96f6a1b
SCI: Changed vocab_tokenize_string to not 'return' the list it generates, but rather pass a reference to an existing list to it (this is a bit more efficient, and allows us to return an error value)
...
svn-id: r39670
2009-03-24 17:41:46 +00:00
Max Horn
d38590e6d4
SCI: Turned synonyms list into a Common::List
...
svn-id: r39669
2009-03-24 17:41:26 +00:00
Walter van Niftrik
3e2c1a39e2
SCI: Added workaround for duplicate polygons being passed to kAvoidPath.
...
svn-id: r39668
2009-03-24 15:17:25 +00:00
Max Horn
b76f7fea4e
SCI: Changed some char* into Common::String
...
svn-id: r39663
2009-03-24 12:46:48 +00:00
Max Horn
33895c0220
SCI: Only pass the pointerpos to Menubar::mapPointer, not the full gfx_state_t
...
svn-id: r39662
2009-03-24 12:14:41 +00:00
Max Horn
9ea32d4aa1
SCI: C++ify menu code
...
svn-id: r39659
2009-03-24 11:31:16 +00:00
Filippos Karapetis
3b5a14916d
Cleanup
...
svn-id: r39633
2009-03-23 14:24:10 +00:00
Walter van Niftrik
ca993d8b00
SCI: some avoidpath cleanup
...
svn-id: r39630
2009-03-23 11:10:16 +00:00
Filippos Karapetis
a6f49a636b
- Moved palette initialization inside the graphics resource manager
...
- The static palette is no longer needlessly referenced directly outside the graphics resource manager
- Moved the SCI interpreter version inside the graphics resource manager, instead of gfx_state_t
svn-id: r39626
2009-03-23 08:43:53 +00:00
Filippos Karapetis
e3f9acc3e6
Further objectification of the graphics resource manager
...
svn-id: r39621
2009-03-22 23:11:43 +00:00
Max Horn
2463b148a9
SCI: Renamed Vertex::entries::cle_next -> Vertex::_next, analog for cle_prev. Replace code for reversing a circular list by a new method CircularVertexList::reverse()
...
svn-id: r39613
2009-03-22 18:27:39 +00:00
Max Horn
09ecda7ca4
SCI: Some cleanup; avoid taking square root unnecessarily
...
svn-id: r39612
2009-03-22 18:27:08 +00:00
Max Horn
734e9dd377
SCI: Fix warnings
...
svn-id: r39606
2009-03-22 13:50:37 +00:00
Max Horn
7245fce099
SCI: cleanup
...
svn-id: r39578
2009-03-20 23:02:20 +00:00
Max Horn
ed292fb498
silenced some warnings
...
svn-id: r39566
2009-03-20 13:30:10 +00:00
Walter van Niftrik
a45ed16fc4
SCI: converted aatree into a class
...
svn-id: r39544
2009-03-19 22:47:30 +00:00
Filippos Karapetis
723bc879f8
Changed abs_rect_t to Common::Rect
...
svn-id: r39518
2009-03-18 16:43:12 +00:00
Filippos Karapetis
e546c60948
Further objectification of the graphics resource manager
...
svn-id: r39499
2009-03-17 23:30:57 +00:00
Filippos Karapetis
063ce3938d
Started objectifying the graphics resource manager (refer to patch #2689887 )
...
svn-id: r39492
2009-03-17 21:08:33 +00:00
Max Horn
95c58e76d6
SCI: Added TODO: Merge SegInterface and MemObject? And some cleanup
...
svn-id: r39485
2009-03-17 16:08:25 +00:00
Max Horn
3c23ba7d73
SCI: Got rid of various SegManager::free_* methods
...
svn-id: r39484
2009-03-17 16:07:58 +00:00
Filippos Karapetis
80c243e5ca
Renamed some defines:
...
- FREESCI_CURRENT_SAVEGAME_VERSION, FREESCI_MINIMUM_SAVEGAME_VERSION -> CURRENT_SAVEGAME_VERSION, MINIMUM_SAVEGAME_VERSION (saved games are not compatible with FreeSCI's ones anymore)
- _K_VIEW_SIG_FLAG_FREESCI_STOPUPD -> _K_VIEW_SIG_FLAG_STOPUPD (like the rest of the flags)
- Removed FREESCI_KFUNCT_GLUTTON (unused)
svn-id: r39478
2009-03-17 08:03:42 +00:00
Filippos Karapetis
ebfdd92727
Removed the "About FreeSCI" menu as discussed in -devel, now that the FreeSCI contributors have been moved to the AUTHORS file
...
svn-id: r39476
2009-03-17 07:57:02 +00:00
Filippos Karapetis
4bd84b7311
Replaced "xl" with "width" and "y1" with "height" in places where rectangles are used
...
svn-id: r39435
2009-03-16 00:07:12 +00:00
Max Horn
466ba4bbfe
SCI: Rewrote the save/load code, see also patch #2687400 .
...
The new format is incompatible with the old one, and is still subject to
some further changes. Also, regressions are quite possible, so watch out.
Finally, the new code still contains some TODOs and FIXMEs. Several of
these will be more or less automatically resolved once other code gets
C++ified.
svn-id: r39430
2009-03-15 20:31:29 +00:00
Max Horn
7df4e2a80f
SCI: Indention changes, changed 'songlib_t' params to 'const songlib_t &'
...
svn-id: r39429
2009-03-15 20:31:15 +00:00
Max Horn
f64d223e07
cleaning up after myself again *sigh*
...
svn-id: r39382
2009-03-14 01:52:14 +00:00
Max Horn
f91eaf9f1a
SCI: Fixed warning
...
svn-id: r39381
2009-03-14 01:45:11 +00:00
Max Horn
150b38ffb7
SCI: Removed more dead code
...
svn-id: r39379
2009-03-14 01:44:53 +00:00
Filippos Karapetis
31c66b5931
Removed two empty switch statements to silence an MSVC warning
...
svn-id: r39376
2009-03-14 00:12:23 +00:00
Filippos Karapetis
b78001f7ca
Changed the "internal" variable inside gfxr_pic_t to priorityTable (cause that's what it is), and changed its type to int * to avoid unneeded casts
...
svn-id: r39375
2009-03-14 00:05:01 +00:00
Max Horn
364ce5874d
SCI: cleanup
...
svn-id: r39371
2009-03-13 16:31:38 +00:00
Filippos Karapetis
7854a01f14
Changed the parameter passed to isprint() to be unsigned, according to MSDN (thanks wjp)
...
svn-id: r39370
2009-03-13 10:36:57 +00:00
Filippos Karapetis
0916523763
Added an explanatory comment for commit #39368
...
svn-id: r39369
2009-03-13 07:56:06 +00:00
Filippos Karapetis
f4eb159eb8
LSL5 no longer throws an assertion after the intro
...
svn-id: r39368
2009-03-13 01:36:07 +00:00
Filippos Karapetis
36a801ad14
EngineState is a struct, not a class
...
svn-id: r39355
2009-03-12 08:14:55 +00:00
Max Horn
6a2efdd36d
SCI: cleanup
...
svn-id: r39353
2009-03-12 03:26:58 +00:00
Max Horn
642bad22d8
SCI: Removed most uses of the 'inline' keyword. It is usually better to let the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;)
...
svn-id: r39352
2009-03-12 03:26:47 +00:00
Max Horn
40b313c28e
SCI: Moved savegame specific stuff from state.h to a new header savegame.h
...
svn-id: r39351
2009-03-12 03:26:21 +00:00
Max Horn
ca4bdb8572
SCI: Removed some dead code
...
svn-id: r39349
2009-03-12 02:40:04 +00:00
Filippos Karapetis
26135a175c
Changed a case inside inline_lookup_node() to non-fatal, for now, to make it possible to walk around in SQ4 (check the FIXME comment)
...
svn-id: r39348
2009-03-11 23:47:00 +00:00