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
Nicola Mettifogo
1ddd54b50d
- Moved some members from the engine class to Location, since they belong there.
...
- Cleaned up usage of location flags by using accessor functions.
svn-id: r31872
2008-05-05 11:02:40 +00:00
Nicola Mettifogo
d4c8d4e18f
Fixed usage of SharedPtr, so that reference counting is proper and there are no more objects that need constructors at global level (helps PalmOS).
...
svn-id: r31533
2008-04-17 09:32:57 +00:00
Nicola Mettifogo
3d1a2e2049
Replaced custom ManagedList with Common::SharedPtr.
...
svn-id: r31415
2008-04-06 05:40:02 +00:00
Nicola Mettifogo
cce8e25960
Removed all job routines. Stubs have been left for future reference in the code for BRA.
...
svn-id: r30675
2008-01-28 13:10:49 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Nicola Mettifogo
d86246308d
Walk and script handling are now directly handled by the main loop, instead of relying on the job list.
...
svn-id: r29568
2007-11-19 20:23:01 +00:00
Nicola Mettifogo
10caba3562
* centralized kEngineChangeLocation flag handling
...
* simplified runGame, moving flags testing into called routines
svn-id: r29504
2007-11-14 22:24:26 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00