aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/walk.cpp
AgeCommit message (Collapse)Author
2009-02-03Removed newlines from debug statements.Nicola Mettifogo
svn-id: r36208
2009-01-07Extended PathBuffer to support BRA.Nicola Mettifogo
svn-id: r35766
2009-01-07* moved more mask management to BackgroundInfoNicola Mettifogo
* 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
2008-12-17Reduced code duplication when manipulating Animations, and cleanup.Nicola Mettifogo
svn-id: r35408
2008-12-14Removed some unused code.Nicola Mettifogo
svn-id: r35357
2008-12-06Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues ↵Nicola Mettifogo
in scrollable locations are a bit messed up for the moment. svn-id: r35253
2008-08-15Made coordinates and frame number protected into Zone and Animation, and ↵Nicola Mettifogo
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-07-28Enforcing use of nullZonePtr only for nulling out pointers, as it is useless ↵Nicola Mettifogo
for comparisons. svn-id: r33384
2008-07-27Added rudimental support for location changes when walking through doors. ↵Nicola Mettifogo
The best part of this commit is that Doug now stops in a normal position. svn-id: r33328
2008-07-27Doug from BRA can now walk in his hotel room. He still stops in bizarre ↵Nicola Mettifogo
poses, though. svn-id: r33325
2008-07-26More cleanup.Nicola Mettifogo
svn-id: r33298
2008-07-26Cleanup.Nicola Mettifogo
svn-id: r33297
2008-07-26* Added walk calculations to BRA (doesn't walk yet, though).Nicola Mettifogo
* Adapted Character and Animation to handle both versions of the engine. svn-id: r33296
2008-07-25Changed the remaining references to Nodes into Points.Nicola Mettifogo
svn-id: r33290
2008-07-25* Changed walk code to use Common::Point instead of the clumsy WalkNode.Nicola Mettifogo
* Changed walk code to use object copy instead of managing pointers. svn-id: r33289
2008-07-14Fixed regression in walk code. Now standing frames are correctly selected ↵Nicola Mettifogo
when the character encounters an unexpected blocking object in his/her path. svn-id: r33053
2008-07-13More refactoring of walk code.Nicola Mettifogo
svn-id: r33033
2008-07-13Cleanup of walk code.Nicola Mettifogo
svn-id: r33023
2008-07-11Moved program and command execution code out of the engine, into their own ↵Nicola Mettifogo
brand new classes. svn-id: r33003
2008-05-05- Moved some members from the engine class to Location, since they belong there.Nicola Mettifogo
- Cleaned up usage of location flags by using accessor functions. svn-id: r31872
2008-04-17Fixed usage of SharedPtr, so that reference counting is proper and there are ↵Nicola Mettifogo
no more objects that need constructors at global level (helps PalmOS). svn-id: r31533
2008-04-06Replaced custom ManagedList with Common::SharedPtr.Nicola Mettifogo
svn-id: r31415
2008-01-28Removed all job routines. Stubs have been left for future reference in the ↵Nicola Mettifogo
code for BRA. svn-id: r30675
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2007-11-19Walk and script handling are now directly handled by the main loop, instead ↵Nicola Mettifogo
of relying on the job list. svn-id: r29568
2007-11-14* centralized kEngineChangeLocation flag handlingNicola Mettifogo
* simplified runGame, moving flags testing into called routines svn-id: r29504
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-09-02Cleanup: removed unneeded references to engine (_vm).Nicola Mettifogo
svn-id: r28826
2007-09-02Jobs are now members of the engine and are handled with a table, instead of ↵Nicola Mettifogo
being external functions. svn-id: r28824
2007-08-28Enforced use of character's feet coordinates throughout the walk code.Nicola Mettifogo
svn-id: r28760
2007-08-11Cleanup.Nicola Mettifogo
svn-id: r28525
2007-08-11Overhaul of background/mask/path handling:Nicola Mettifogo
- added new BackgroundInfo structure - added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation. - simplified loading and handling of background resources. svn-id: r28524
2007-08-07MaskBuffer and PathBuffer are now correctly freed before they are ↵Nicola Mettifogo
deallocated, and so is background Surface. svn-id: r28483
2007-08-06- Renamed BitBuffer to MaskBufferNicola Mettifogo
- Added PathBuffer to handle 1-bit buffers for walkable areas - Changed relevant walk code to use PathBuffer objects for querying screen dimensions. svn-id: r28478
2007-07-29Cleanup.Nicola Mettifogo
svn-id: r28315
2007-07-27- Moved disk code for Nippon Safes in new file disk_ns.cpp, adding _ns ↵Nicola Mettifogo
suffix to classes and member functions. - Added function stubs into new file disk_br.cpp for Big Red Adventure [IT STILL CRASHES!]. - Modified engine to create the proper Disk manager object. svn-id: r28246
2007-07-26Made screen size parameters properties of engine instead of compile-time ↵Nicola Mettifogo
constants. svn-id: r28219
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-13cleanupNicola Mettifogo
svn-id: r26834
2007-04-23Fixed paths. (Short comment for big achievement).Nicola Mettifogo
svn-id: r26586
2007-04-23Fixed walking bug: random nodes aren't inserted in the walk path anymore.Nicola Mettifogo
svn-id: r26577
2007-04-15Fixed some memory leaks.Nicola Mettifogo
svn-id: r26483
2007-04-11- Moved Zone and Animation to List<>.Nicola Mettifogo
- Removed any reference to Node from codebase. svn-id: r26452
2007-04-09- moved walk code to List<>Nicola Mettifogo
- some adjustments to #include statements svn-id: r26424
2007-04-07Explicit constructor invoked when instancing WalkNode.Nicola Mettifogo
svn-id: r26406
2007-04-07Reduced dependency between project files, and prepared defs.h for deletion ↵Nicola Mettifogo
as soon as List<>'s usage is implemented. svn-id: r26400
2007-04-07Turned free___() routines into proper destructors for Zone, Animation and ↵Nicola Mettifogo
Program, and added memo comments for porting the engine to Common::List<>. svn-id: r26399
2007-03-24made more functions members of ParallactionNicola Mettifogo
svn-id: r26294
2007-03-22unrolled loop in buildWalkPath and renamed some variablesNicola Mettifogo
svn-id: r26276
2007-03-21- moved buildWalkPath inner loop into a new functionNicola Mettifogo
- renamed some variables in buildWalkPath - deleted an old extern for buildWalkPath svn-id: r26272