Commit Graph
107 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Colin Snover 481b608c51 PARALLACTION: Replace use of strdup with Common::String & malloc 2018-08-18 16:30:05 +02:00
Johannes Schickel 56a99b1d37 PARALLACTION: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01:00
Alyssa Milburn 41d337c549 PARALLACTION: Clean up global variables a bit. 2012-09-27 22:41:51 +02:00
D G Turner d13a9270a7 PARALLACTION: Correct Previous Commit to Coding Conventions. 2011-08-24 01:42:19 +01:00
D G Turner 5a0680af52 PARALLACTION: Improve safety of PathBuffer Accesses in Pathfinding. 2011-08-24 00:58:05 +01: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
David Turner bbb1379def PARALLACTION: Minor Whitespace fixup in walk.cpp
svn-id: r55392
2011-01-21 20:08:11 +00:00
David Turner f042e398ea PARALLACTION: Fix Big Red Adventure Walking To Stop On Path Build Failure.
Walking now works correctly, with no valgrind issues, lockups or assertions.

svn-id: r55281
2011-01-18 00:22:47 +00:00
David Turner c6750a7a65 PARALLACTION: Minor Whitespace and code complexity reduction in walk.*
svn-id: r55280
2011-01-17 23:12:59 +00:00
David Turner 3ebf1e5962 PARALLACTION: Some Improvements To Big Red Adventure Walk Code.
* Renamed and retyped "int _fieldC" to "bool _stillWalkingTowardsNode" to aid readability and clarity of code. Thanks to fuzzie for naming.
* Added assertion to prevent use of invalid memory as reported by Valgrind when walk point p is constructed from an empty list.
* Added code to stop walk if buildPath fails, though this causes an assertion instead currently.

svn-id: r55279
2011-01-17 23:00:52 +00:00
David Turner 460f8c277b PARALLACTION: Fixed Limit Values in Big Red Adventure Walker Code.
This corrects the Valgrind invalid reads associated with the IS_PATH_CLEAR() check reading beyond the data buffer and probably improves the pathfinding behaviour.
Thanks to fuzzie for suggesting this patch.

svn-id: r55231
2011-01-13 20:06:23 +00:00
David Turner 731a75adb8 PARALLACTION: Fix for Valgrind Uninitialized Error in Big Red Adventure Walk Code.
svn-id: r55221
2011-01-13 03:25:57 +00:00
Torbjörn Andersson 54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19: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 4cb1fc9e79 Make sure walk coordinate are valid before checking path buffer.
svn-id: r48846
2010-04-28 22:52:36 +00:00
Willem Jan Palenstijn fe51070977 Fix whitespace
svn-id: r48477
2010-04-02 22:14:18 +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 5c714cb46e Implemented MOVE script instruction.
svn-id: r39623
2009-03-23 08:00:39 +00:00
Nicola Mettifogo 71f42a9549 Fully implemented scrolling.
svn-id: r39622
2009-03-23 00:56:05 +00:00
Max Horn f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Nicola Mettifogo 310036788a Enabled walking delay for follower animation.
svn-id: r39067
2009-03-02 09:16:03 +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 76283e3f73 Merged walk code for NS, and simplified handling.
svn-id: r38894
2009-02-26 09:42:08 +00:00
Nicola Mettifogo d5d006bb30 Cleanup of CommandExec and ProgramExec, and pushed down dependencies from exec.h.
svn-id: r38892
2009-02-26 06:16:35 +00:00
Nicola Mettifogo 93666ef53c Updated all for(;;) loops to use prefix increment on iterators.
svn-id: r38876
2009-02-25 08:53:58 +00:00
Nicola Mettifogo b3d2429b04 Fixed shadowed name.
svn-id: r38841
2009-02-24 15:21:53 +00:00
Nicola Mettifogo 6334125d1c Implemented follower support, except that:
* follower is forgotten when location changes (see freeLocation)
* the final walking frame is screwed

svn-id: r38838
2009-02-24 11:20:45 +00:00
Nicola Mettifogo 659c9fb901 Changed interface to walk code, to better handle the differences between games. Moreover:
* merged PathBuilder_BR into PathWalker_BR
* implemented checkTrap routine for BRA

svn-id: r38836
2009-02-24 08:42:46 +00:00
Nicola Mettifogo 0a42482fc3 Removed newlines from debug statements.
svn-id: r36208
2009-02-03 10:38:56 +00:00
Nicola Mettifogo f1ad8b6934 Extended PathBuffer to support BRA.
svn-id: r35766
2009-01-07 08:16:18 +00:00
Nicola Mettifogo 21fae9d029 * moved more mask management to BackgroundInfo
* simplified mask management for client code
* reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp
* preparation for the full implementation of BRA's PathBuffer

svn-id: r35765
2009-01-07 07:35:11 +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 e98bc7e402 Removed some unused code.
svn-id: r35357
2008-12-14 10:08:31 +00:00
Nicola Mettifogo 7681461b16 Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues in scrollable locations are a bit messed up for the moment.
svn-id: r35253
2008-12-06 04:51:04 +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 7baf727790 Enforcing use of nullZonePtr only for nulling out pointers, as it is useless for comparisons.
svn-id: r33384
2008-07-28 23:21:03 +00:00
Nicola Mettifogo 6e4d26fb70 Added rudimental support for location changes when walking through doors. The best part of this commit is that Doug now stops in a normal position.
svn-id: r33328
2008-07-27 10:37:54 +00:00
Nicola Mettifogo b9d0e4dafb Doug from BRA can now walk in his hotel room. He still stops in bizarre poses, though.
svn-id: r33325
2008-07-27 08:35:00 +00:00
Nicola Mettifogo 8245aa42b5 More cleanup.
svn-id: r33298
2008-07-26 05:56:39 +00:00
Nicola Mettifogo 34ff51d1c6 Cleanup.
svn-id: r33297
2008-07-26 05:37:52 +00:00
Nicola Mettifogo 7950a9183b * Added walk calculations to BRA (doesn't walk yet, though).
* Adapted Character and Animation to handle both versions of the engine.

svn-id: r33296
2008-07-26 04:01:11 +00:00
Nicola Mettifogo 1174296a66 Changed the remaining references to Nodes into Points.
svn-id: r33290
2008-07-25 16:08:10 +00:00
Nicola Mettifogo 3e08d36363 * Changed walk code to use Common::Point instead of the clumsy WalkNode.
* Changed walk code to use object copy instead of managing pointers.

svn-id: r33289
2008-07-25 16:01:25 +00:00
Nicola Mettifogo d0ae6885ac Fixed regression in walk code. Now standing frames are correctly selected when the character encounters an unexpected blocking object in his/her path.
svn-id: r33053
2008-07-14 00:21:05 +00:00
Nicola Mettifogo ef95c6ff70 More refactoring of walk code.
svn-id: r33033
2008-07-13 13:04:36 +00:00
Nicola Mettifogo 059936854c Cleanup of walk code.
svn-id: r33023
2008-07-13 06:27:31 +00:00
Nicola Mettifogo 8ed023142a Moved program and command execution code out of the engine, into their own brand new
classes.

svn-id: r33003
2008-07-11 13:06:28 +00:00