Johannes Schickel
56a99b1d37
PARALLACTION: Make GPL headers consistent in themselves.
2014-02-18 02:39:37 +01:00
Alyssa Milburn
98934898cf
PARALLACTION: Use strlcpy instead of strncpy.
2013-04-17 23:17:22 +02:00
Alyssa Milburn
41d337c549
PARALLACTION: Clean up global variables a bit.
2012-09-27 22:41:51 +02:00
Willem Jan Palenstijn
9ffe3e11d9
Merge pull request #182 from fingolfin/forbid-ctype
...
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83
COMMON: Move isFoo functions to namespace Common, add doxygen comments
2012-02-20 16:18:27 +01:00
Tarek Soliman
921f602ab8
JANITORIAL: Fix whitespace in pointer template arg
2012-02-15 10:07:08 -06:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Filippos Karapetis
a9214ac7a2
PARALLACTION: Updated the fix for script bug #2969913 to a workaround
2011-09-28 15:34:58 +03:00
Filippos Karapetis
7aad29572d
PARALLACTION: Fixed bug #2969913 - "NIPPON: Katana graphics not shown (regression)"
2011-09-28 14:10:52 +03:00
Littleboy
b694a78f62
ANALYSIS: Add static casts to is* functions
...
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Nicola Mettifogo
c4e4f7dc86
PARALLACTION: parse command lists for kNoneType zones, even if defined after TYPE markers. This fixes bug #3131769 .
...
svn-id: r54879
2010-12-12 07:17:13 +00:00
Max Horn
a7248a0601
ENGINES: Replace many printfs by warning/debug/debugN
...
svn-id: r54031
2010-11-01 21:37:47 +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
Nicola Mettifogo
122fde0775
Fixed leaks in parsing of examine and door zones.
...
svn-id: r48838
2010-04-28 22:13:02 +00:00
Nicola Mettifogo
83c8679127
Moved parser functions arrays to file scope, as they were tripping up the obsolete gcc used for the BeOS/Haiku port. If anybody can work out a better solution please apply it, because this makes me sick.
...
svn-id: r42793
2009-07-26 08:37:03 +00:00
Nicola Mettifogo
58df840a13
Moved Nippon Safes specific code from Parallaction to Parallaction_ns and adapted client code.
...
svn-id: r39813
2009-04-03 16:32:47 +00:00
Max Horn
fb6d0a7119
PARALLACTION: Fix silly Mingw 'shadowed declaration' warnings
...
svn-id: r39809
2009-04-03 14:53:15 +00:00
Nicola Mettifogo
011b73a09b
Commands now evaluate their reference Zone at runtime, thus handling of forward references in the parser is no more needed.
...
svn-id: r39738
2009-03-29 12:41:00 +00:00
Nicola Mettifogo
28465d73bb
Merged CommandData into Command.
...
svn-id: r39732
2009-03-29 10:18:09 +00:00
Nicola Mettifogo
c1ff3aec3e
Removed paranoia check.
...
svn-id: r39656
2009-03-24 09:01:44 +00:00
Nicola Mettifogo
76c0d08200
* Pushed evaluation of 'following question' from dialogue parsing to dialogue execution.
...
* Removed all the question forwards declaration code
svn-id: r39654
2009-03-24 08:20:08 +00:00
Nicola Mettifogo
0998f53cb0
Refactored the zone type parsers.
...
svn-id: r39650
2009-03-23 23:17:33 +00:00
Nicola Mettifogo
d82aea1e54
Turned ZoneTypes into a regular numeric id (no more a bitfield).
...
svn-id: r39648
2009-03-23 22:34:46 +00:00
Nicola Mettifogo
2223627c75
Merged GetData, HearData, SpeakData, PathData, ExamineData, MergeData into TypeData struct. This simplifies life a bit especially in the parsers.
...
svn-id: r39645
2009-03-23 20:41:54 +00:00
Nicola Mettifogo
8cebcaf017
Pushed down dependencies from parser.h
...
svn-id: r39636
2009-03-23 17:42:08 +00:00
Nicola Mettifogo
d18274d0ee
Implemented all variants of IF script instruction. Program class has been changed to store an Array of instruction instead of a List, so that references to instructions are integers.
...
svn-id: r39631
2009-03-23 11:38:09 +00:00
Nicola Mettifogo
14ced31851
Fixed building on 64-bit architectures.
...
svn-id: r39395
2009-03-14 15:34:28 +00:00
Nicola Mettifogo
8723afd6f4
* Added a generic sound manager that hides engine-specific managers and allows accessing them through a simplified command/parameter interface.
...
* Updated client code to use the new manager.
* Moved Nippon Safes sound code from sound.cpp to sound_ns.cpp.
svn-id: r39394
2009-03-14 15:09:31 +00:00
Nicola Mettifogo
44906f574f
The engine has now to build the drawing list for the graphic department, instead of setting visibility flags; the new field _prog has been added to GfxObj to help sorting the list.
...
The outcome is that cleaning up unused resources on location switches is now easier to manage, and less error prone.
svn-id: r38928
2009-02-27 08:56:19 +00:00
Nicola Mettifogo
88efc8603e
Removed null*Ptr dummy objects, using SharedPtr's reset method to null pointers instead.
...
svn-id: r38897
2009-02-26 10:44:01 +00:00
Nicola Mettifogo
e3afa772e2
Cleanup.
...
svn-id: r38817
2009-02-23 12:17:25 +00:00
Nicola Mettifogo
b2a9393eee
Replacement an immediate with the appropriate #define constant.
...
svn-id: r35950
2009-01-20 12:47:39 +00:00
Nicola Mettifogo
3e611e1eb7
Adapted fixed-sized arrays to cope with the larger dialogues in BRA. Maybe they should be turned into dynamic data structures...
...
svn-id: r35944
2009-01-20 10:39:16 +00:00
Nicola Mettifogo
294c76f4c4
Don't assert anymore when a command flag doesn't exist, but ignore it and print a warning instead. Some location scripts in BRA are totally broken.
...
svn-id: r35783
2009-01-08 07:11:32 +00:00
Nicola Mettifogo
7a0b782a3c
Made sure to display labels on animations.
...
svn-id: r35726
2009-01-04 15:37:46 +00:00
Nicola Mettifogo
f2b495ba2d
Implemented counters in BRA. Only valid answer options are shown, and counter calculations in scripts are performed.
...
svn-id: r35723
2009-01-04 14:23:20 +00:00
Nicola Mettifogo
74b251d45d
Added a stub to dialogue parser, so that dialogue lines controlled by counters are displayed.
...
svn-id: r35465
2008-12-21 15:41:41 +00:00
Nicola Mettifogo
774773b7cd
Reduced code duplication when manipulating Animations, and cleanup.
...
svn-id: r35408
2008-12-17 11:15:47 +00:00
Nicola Mettifogo
dc3e9027f4
Removed references to _vm from the engine itself.
...
svn-id: r35358
2008-12-14 10:32:26 +00:00
Nicola Mettifogo
b3475d8178
* Replaced char* with Common::String in the parser.
...
* Enforced const-correctness on related routines.
svn-id: r35326
2008-12-13 03:37:43 +00:00
Nicola Mettifogo
618644ba0c
Update to the low level parser:
...
* made it detect buffer overflows
* removed unused code paths
* general simplification
svn-id: r35047
2008-11-13 15:15:54 +00:00
Nicola Mettifogo
181a44fc21
Fixed default zone flags, so that labels in BRA are only shown on zones which have one.
...
svn-id: r35012
2008-11-12 07:08:43 +00:00
Nicola Mettifogo
63ccac8f9d
Enabled flags parsing for all commands in location script. Most of them don't need it, but some commands have been enhanced in BRA.
...
svn-id: r34944
2008-11-09 05:24:08 +00:00
Nicola Mettifogo
3eeece6a25
* cleanup
...
* moved find routines from Parallaction to Location
svn-id: r34940
2008-11-08 15:02:19 +00:00
Nicola Mettifogo
0606fef24e
Made coordinates and frame number protected into Zone and Animation, and changed client code to use get/set. This will allow various simplifications (e.g. when calculating Z), and is a step towards correct handling of interactive zones of Zone/Animation in BRA.
...
svn-id: r33892
2008-08-15 04:30:45 +00:00
Nicola Mettifogo
c70d09bc26
Made scripts access Animation fields via accessors and mutators, instead of using raw pointers.
...
svn-id: r33891
2008-08-15 03:59:45 +00:00
Nicola Mettifogo
ea2a2cbb7c
Simplified handling of script variables (especially locals).
...
svn-id: r33889
2008-08-15 02:52:42 +00:00