1250 Commits

Author SHA1 Message Date
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files

svn-id: r54264
2010-11-16 10:11:57 +00:00
Max Horn
a7248a0601 ENGINES: Replace many printfs by warning/debug/debugN
svn-id: r54031
2010-11-01 21:37:47 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Nicola Mettifogo
5ba15c5ae5 Update BRA demo startup code to use the part/location handling code from r50042. Patch #3089932 by fuzzie.
svn-id: r53702
2010-10-22 14:21:26 +00:00
Nicola Mettifogo
c67bcddf85 Initialize variable in NS gui code (was crashing a demo). Patch #3089932 by fuzzie.
svn-id: r53701
2010-10-22 14:19:37 +00:00
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00
Torbjörn Andersson
54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Johannes Schickel
c3366755ef PARALLACTION: Fix out of bounds access.
This is a partial commit of patch #3085298 "overflows in agi and parallaction".

svn-id: r53146
2010-10-11 17:07:34 +00:00
Torbjörn Andersson
c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Johannes Schickel
c42e2f3a55 PARALLACTION: Use a char array for static data instead of String.
svn-id: r52610
2010-09-06 21:17:26 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Nicola Mettifogo
6a6091f6d7 Prevent execution of the STOP script command when its Zone does not exist. Patch #3021744 by fuzzie with some comments.
svn-id: r50363
2010-06-27 04:58:48 +00:00
Florian Kagerer
c35e350531 AUDIO: get rid of MDT_PREFER_MIDI since it should be sufficient to either select MDT_PREFER_MT32 or MDT_PREFER_GM
svn-id: r50288
2010-06-25 20:51:57 +00:00
Max Horn
bbad3f333a Patch #1956501: "GUI/LAUNCHER: Midi device selection"
svn-id: r50128
2010-06-21 21:36:36 +00:00
Nicola Mettifogo
5328abe2f0 Cleanup.
Got rid of the legacy "location.part" string handling in BRA.

svn-id: r50042
2010-06-19 04:51:31 +00:00
Nicola Mettifogo
96d4ae0fcc Cleanup some more state when switching part in BRA.
svn-id: r50041
2010-06-19 04:51:14 +00:00
Nicola Mettifogo
de7de460e8 Use the new _nextPart member switching part from the menu in BRA.
svn-id: r50040
2010-06-19 04:51:00 +00:00
Nicola Mettifogo
d7a165b9f2 Implemented PART command for BRA, largely based on patch #3005434 by fuzzie.
svn-id: r50039
2010-06-19 04:50:44 +00:00
Nicola Mettifogo
5b3075bd65 Guarded the command execution suspension for NS demo (this was due in r38662 - see bug #2619824).
svn-id: r50038
2010-06-19 02:51:03 +00:00
Nicola Mettifogo
61c40e2bd4 Save the context of a suspended list before resuming the execution, so that it can safely be suspended again. Patch 3004652 by fuzzie.
svn-id: r50037
2010-06-19 02:50:46 +00:00
Eugene Sandulenko
44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
4d517ed0e9 Extended advancedDetector with depth parameter.
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.

svn-id: r49653
2010-06-14 14:50:23 +00:00
Nicola Mettifogo
466479eb77 Added a parser for kZoneNone zones/animations in BRA.
The only thing it does is parsing a possible command list, which is enough to support the script bug in "scende2". See ticket #3005384.

svn-id: r49628
2010-06-13 09:07:15 +00:00
Nicola Mettifogo
d199377388 When closing inventory, do not force input back to game-mode if commands need otherwise.
svn-id: r49623
2010-06-13 07:35:48 +00:00
Nicola Mettifogo
94cdfefe1c Fixed clipping when drawing sprites at small scale factors (this fixes the balloon scene).
svn-id: r49621
2010-06-13 06:56:13 +00:00
Nicola Mettifogo
d16eb491b1 Support for vertical scrolling. Patch 3005933 by fuzzie.
svn-id: r49620
2010-06-13 06:55:58 +00:00
Nicola Mettifogo
3cacd7bc43 Keep the balloon from getting stuck in an infinite loop when floating near the borders of the screen.
See the detailed explanation in walk.cpp.

svn-id: r49619
2010-06-13 06:55:40 +00:00
Nicola Mettifogo
0659d5f244 Improved debug output of BRA walk code.
svn-id: r49618
2010-06-13 06:55:24 +00:00
Nicola Mettifogo
9906030312 Ensure that zones/animations always get the same index number.
When a zone/animation is skipped by the parser because already
loaded, the index is now increased. This does not affect NS, since
indexes are only used for scene sorting there, but is relevant for
BRA, where indexes need to be coherent across location changes.

Patch #3004008 by fuzzie.

svn-id: r49428
2010-06-04 13:48:09 +00:00
Eugene Sandulenko
c96e234a0a Fix warning
svn-id: r49192
2010-05-24 16:58:14 +00:00
Nicola Mettifogo
5f2a88e596 Cleanup (removed more Parallaction::getGameType() calls).
svn-id: r49147
2010-05-22 18:00:16 +00:00
Nicola Mettifogo
95f6a71f36 Cleanup (removed many Parallaction::getGameType() calls).
svn-id: r49146
2010-05-22 17:59:49 +00:00
Nicola Mettifogo
2f5cb946bb Finish implementation of hitZone and related functions as from the original code.
svn-id: r49145
2010-05-22 17:59:33 +00:00
Nicola Mettifogo
b4813f9b18 Apply patch 3004687 by fuzzie: allow usage of merge zones.
svn-id: r49144
2010-05-22 17:59:16 +00:00
Nicola Mettifogo
45a5c29cdf Apply patch 3005433 by fuzzie: new 'toggleglobalflags' command for the debugger.
svn-id: r49141
2010-05-22 15:56:27 +00:00
Nicola Mettifogo
866e15e8b2 Apply patch 3004991 by fuzzie: don't try and run dialogues for SPEAK zones without dialogue, but run the command list anyway.
svn-id: r49140
2010-05-22 15:56:09 +00:00
Nicola Mettifogo
1b6d9c86e2 Make sure a dialogue is valid before entering dialogue mode.
svn-id: r49139
2010-05-22 15:30:18 +00:00
Nicola Mettifogo
d56352cbd5 Use the kZoneYourself flag to check zones for self-use in BRA. See patch 3003626.
svn-id: r49138
2010-05-22 12:37:07 +00:00
Nicola Mettifogo
a8ea833941 Do not make the character walk towards the zone clicked upon by the user if it is marked for self-use. See patch 3003626.
svn-id: r49137
2010-05-22 12:36:52 +00:00
Nicola Mettifogo
5280cbbbcd Added descriptions for kFlagsSelfuse and kFlagsYourself. See patch 3003626.
svn-id: r49136
2010-05-22 12:36:36 +00:00
Nicola Mettifogo
bc479f8aef Make sure hitZone always gets absolute game coordinates. Based on the patch 3004658 by fuzzie.
svn-id: r49135
2010-05-22 03:49:22 +00:00
Nicola Mettifogo
1c579dc0ac Fix loading of MSC files on big-endian systems. Patch 3004367 by fuzzie.
svn-id: r49128
2010-05-21 12:39:54 +00:00
Nicola Mettifogo
8b20f16378 Added a new valid EOL character for scripts. Patch 3004990 by fuzzie.
svn-id: r49127
2010-05-21 11:05:18 +00:00
Nicola Mettifogo
f84b232443 Add a parser for HEAR zones in BRA, and handle the relative MUSIC command. Patch 3003382 by fuzzie, with enhancements.
svn-id: r49105
2010-05-19 17:16:15 +00:00
Nicola Mettifogo
cbee7eebd4 Do not try and run dialogues when there is no dialogue defined in a SPEAK zone. Patch 3003382 by fuzzie.
svn-id: r49103
2010-05-19 16:54:42 +00:00
Willem Jan Palenstijn
16afdc372e Fix missing dialogue index.
This is the BR case of the NS fix in r45053. Patch by fuzzie@fuzzie.org .

svn-id: r49072
2010-05-18 09:24:53 +00:00
Nicola Mettifogo
dae53f7d74 Changed the last global objects to class members.
svn-id: r49011
2010-05-12 09:28:29 +00:00
Max Horn
2149a2383d Reduce indirect header dependencies further
svn-id: r48936
2010-05-04 12:00:16 +00:00