Commit graph

162 commits

Author SHA1 Message Date
Walter van Niftrik
e3178daf13 SCI: Cleanup.
svn-id: r40931
2009-05-27 00:24:32 +00:00
Max Horn
7d5f3e1714 Turned some static tables into static const tables; added some FIXME comments to global static vars that should be removed (many more exist in SCI, Tinsel, and some other engines)
svn-id: r40908
2009-05-26 11:30:21 +00:00
Max Horn
bba91075bf removed trailing whitespaces
svn-id: r40742
2009-05-20 17:53:31 +00:00
Filippos Karapetis
1e547f320c Removed the unused file and line parameters from the list and list node lookup functions, and removed the LOOKUP_LIST and LOOKUP_NODE defines. Also, disabled the unused LOOKUP_SPECIES define
svn-id: r40676
2009-05-18 08:28:04 +00:00
Filippos Karapetis
e940bcff23 - Simplified SCI version detection a bit and clarified the different version feature flags (not used yet)
- Removed the version verification functions (they were only used for two specific cases, but the SCI executable reader is able to detect the exact SCI game version anyway, so there is no point in having these)
- Removed the empty GameFlags structure and replaced it with a 32-bit integer instead

svn-id: r40524
2009-05-13 16:52:41 +00:00
Max Horn
0255cd0213 SCI: Removed sci_memory.h/.cpp
svn-id: r40514
2009-05-12 23:30:10 +00:00
Filippos Karapetis
acd5a87922 Moved the code which retrieves the current room number in a separate function and merged _sci1_alloc_system_colors inside _reset_graphics_input
svn-id: r40412
2009-05-10 10:27:45 +00:00
Walter van Niftrik
34bdd010c3 SCI: AvoidPath: Got rid of a warning.
svn-id: r40399
2009-05-09 09:52:46 +00:00
Walter van Niftrik
90cef59d3b SCI: AvoidPath: No longer excludes edges on screen borders for pathfinding, as
only the earlier games seem to do this. We may need to add a SCI version check
here if this change breaks anything in earlier games.

svn-id: r40398
2009-05-09 01:23:52 +00:00
Walter van Niftrik
a70531f814 SCI: AvoidPath: another workaround for ECO.
svn-id: r40397
2009-05-09 00:32:05 +00:00
Walter van Niftrik
418d80c8a8 SCI: AvoidPath: another workaround for ECO
svn-id: r40384
2009-05-08 14:29:20 +00:00
Walter van Niftrik
afa254721d SCI: AvoidPath: Fixed a regression caused by previous commit, and added a
workaround for ECO room 300.

svn-id: r40383
2009-05-08 12:39:37 +00:00
Walter van Niftrik
8346af68ec SCI: AvoidPath: added support for multiple contained-access polygons (ECO1).
svn-id: r40378
2009-05-08 11:08:53 +00:00
Max Horn
6343b2eee0 SCI: Changed GfxWidget::set_visual function pointer to virtual method setVisual
svn-id: r40108
2009-04-24 10:48:51 +00:00
Max Horn
ebcfd9b016 SCI: Got rid of GFXW() macro; turned GfxWidget::widfree into destructors
svn-id: r40107
2009-04-24 10:48:25 +00:00
Max Horn
9445439c4f SCI: Renamed gfxw_widget_t and subtypes to GfxWidget etc.
svn-id: r40104
2009-04-24 10:46:20 +00:00
Max Horn
86b3657476 SCI: Started to C++ify the gfxw_widget_t codebase
svn-id: r40103
2009-04-24 10:45:09 +00:00
Walter van Niftrik
197c2bbb99 SCI: Replaced AATree by Common::List in AvoidPath. AATree does not help when
the input size is this small.

svn-id: r39855
2009-04-05 00:06:22 +00:00
Max Horn
cf3265a1c9 SCI: Fix warning on OSX
svn-id: r39810
2009-04-03 14:53:56 +00:00
Filippos Karapetis
8ae0ed1706 Applied fingolfin's suggestion to remove the roundf() implementation and make the code in that bit simpler and more readable (since points are always positive)
svn-id: r39802
2009-04-02 19:37:56 +00:00
Filippos Karapetis
6fe12a0888 pic_port_bounds was only set from command-line parameters it seems, so it's safe to put it together with the rest of the options
svn-id: r39800
2009-04-02 16:38:33 +00:00
Filippos Karapetis
9180f3a9a1 Fixed compilation under MSVC by implementing roundf()
svn-id: r39799
2009-04-02 16:30:42 +00:00
Walter van Niftrik
88ec6f407c SCI: AvoidPath cleanup.
svn-id: r39798
2009-04-02 15:28:34 +00:00
Walter van Niftrik
3dc820796d SCI: Avoidpath cleanup.
svn-id: r39797
2009-04-02 00:04:20 +00:00
Walter van Niftrik
e860473d80 SCI: AvoidPath workaround for intersecting polygons in Longbow, room 210.
svn-id: r39714
2009-03-27 23:01:13 +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
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
Walter van Niftrik
ca993d8b00 SCI: some avoidpath cleanup
svn-id: r39630
2009-03-23 11:10:16 +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
7245fce099 SCI: cleanup
svn-id: r39578
2009-03-20 23:02:20 +00:00
Walter van Niftrik
a45ed16fc4 SCI: converted aatree into a class
svn-id: r39544
2009-03-19 22:47:30 +00:00
Willem Jan Palenstijn
ced40b2266 Use new Palette class to manager pixmap palettes.
There are some remaining regressions with text colour in SCI1 games,
but overall it should fix more than it breaks.

svn-id: r39242
2009-03-08 20:17:01 +00:00
Max Horn
2dfae035ac SCI: Reduced header interdependencies some more
svn-id: r39202
2009-03-07 19:23:47 +00:00
Filippos Karapetis
1e29983d8e Replaced getInt16, getUInt16 and putInt16
svn-id: r39189
2009-03-07 16:14:20 +00:00
Jordi Vilalta Prat
501e4bb91a SCI: Renamed some kernel types and general cleanup
svn-id: r38961
2009-02-28 11:12:59 +00:00
Max Horn
479751104f SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp file with the EngineState constructor
svn-id: r38921
2009-02-27 02:23:40 +00:00
Max Horn
b5df97ad2b SCI: Moved kernel.h and kdebug.h from include/ to engine/; untangled header deps some more
svn-id: r38833
2009-02-24 05:51:55 +00:00
Max Horn
47bc0d7879 SCI: Last batch of pathfinding cleanup
svn-id: r38831
2009-02-24 05:30:45 +00:00
Max Horn
325d2ec66b SCI: More pathfinding cleanup
svn-id: r38830
2009-02-24 05:23:42 +00:00
Max Horn
8c9bd00b51 SCI: Replaced vertex list used for dijkstra algo by Common::List; got rid of include/list.h
svn-id: r38829
2009-02-24 05:07:15 +00:00
Max Horn
735701983c SCI: Rewrote parts of the pathfinding code to use Common::List; also renamed some types
svn-id: r38828
2009-02-24 04:56:35 +00:00
Max Horn
82e0b20613 SCI: Turned circular list code into a small class
svn-id: r38827
2009-02-24 04:30:41 +00:00
Max Horn
3a8dd2b467 SCI: cleanup
svn-id: r38826
2009-02-24 04:01:53 +00:00
Jordi Vilalta Prat
b5ce8d9320 Whitespace cleanup
svn-id: r38783
2009-02-22 13:11:43 +00:00
Jordi Vilalta Prat
817fde6cdd SCI: Convert the segment manager into a class
svn-id: r38767
2009-02-21 23:27:24 +00:00
Max Horn
7a12a67ce8 SCI: Moved aatree.* files together into engine/
svn-id: r38763
2009-02-21 22:54:15 +00:00
Max Horn
6f13850161 SCI: Moved include/menubar.h -> gfx/menubar.h, untangled headers some more
svn-id: r38761
2009-02-21 22:50:35 +00:00