aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/actor.cpp
AgeCommit message (Collapse)Author
2010-10-24SAGA: replace Resource:loadResource malloc with ByteArray classAndrew Kurushin
svn-id: r53779
2010-10-24SAGA: replace Scene::_resourceList, Interface::_inventory malloc arrays with ↵Andrew Kurushin
Common::Array svn-id: r53773
2010-10-24SAGA: replace Actor::_actors and _objs malloc base arrays with Common::ArrayAndrew Kurushin
svn-id: r53766
2010-10-23SAGA: replace Events malloc base linked list with Common::ListAndrew Kurushin
svn-id: r53751
2010-10-22SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, ↵Andrew Kurushin
Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation add ByteArray type fix debug Tile Hittest frame drawing debug 0x%x => 0x%X svn-id: r53719
2010-10-20SAGA: replace StringTable "::realloc" with Common::Array; reduce amount of ↵Andrew Kurushin
memory for every string table svn-id: r53651
2010-10-19SAGA: SAGA: replace SpriteList "::realloc" with Common::ArrayAndrew Kurushin
svn-id: r53628
2010-10-19SAGA: replace Actors "::realloc" with Common::ArrayAndrew Kurushin
svn-id: r53627
2010-10-19SAGA: fix submit 53486 "Added sanity checks for realloc() calls - bug report ↵Andrew Kurushin
#3087852". zero count realloc may return NULL as valid value svn-id: r53614
2010-10-15SAGA: Added sanity checks for realloc() calls - bug report #3087852Filippos Karapetis
svn-id: r53486
2010-06-15SAGA: Fix bug #2928923.Eugene Sandulenko
Bug #2928923: 'ITE: Graphic Glitches during racoon death "Cut Scene"'. Disable actor drawing for these scenes. A long standing bug in original. svn-id: r49727
2009-12-04refactor resource module:Andrew Kurushin
- struct ResourceContext => class ResourceContext - replace "*alloc","free" with array templates - simplify createContexts routines svn-id: r46254
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-09-24Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings ↵Filippos Karapetis
and issues in compilers which don't support NORETURN svn-id: r44314
2009-09-24Fixed some more warnings about unreachable codeFilippos Karapetis
svn-id: r44300
2009-05-01SAGA: move Actor::_pathList into a Common::Array<Point>Andrew Kurushin
svn-id: r40232
2009-05-01SAGA: fix SAGA_DEBUG&ACTOR_DEBUG enabled compilation; move ↵Andrew Kurushin
Actor::_debugPoints into a Common::Array<DebugPoint> svn-id: r40227
2009-04-28SAGA: turned Actor::_pathNodeList into a Common::Array<PathNode>; likewise ↵Max Horn
for Actor::_newPathNodeList which also turned from a member var into a function local var svn-id: r40180
2009-04-28SAGA: Moved some code from actor.h to actor.cpp; replaced ↵Max Horn
Actor::_pathDirectionList and related members by a Common::Array<PathDirectionData> inside Actor::fillPathArray() svn-id: r40179
2009-04-11Removed unused (and wrong) code for IHNMFilippos Karapetis
svn-id: r39931
2009-04-11Got rid of SortedListFilippos Karapetis
svn-id: r39928
2009-04-11Removed all but one of the functions of the SortedList, apart from the ↵Filippos Karapetis
custom insert() operation. It's only used in one place now (in _drawOrderList) svn-id: r39925
2009-04-11SAGA: Stop needlessly using operator*() and operator->() (many of the ↵Max Horn
resulting &* uses can be removed if references are used instead of pointers everywhere, which would be a good idea anyway) svn-id: r39920
2009-03-24Fixed a regression of commit #35473. Fixes bug #2703595 - "ITE: Crash when ↵Filippos Karapetis
clicking on items inside the hangar" svn-id: r39664
2009-01-02- Split the IHNM script functions into a different fileFilippos Karapetis
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672
2008-12-23Enumerated the different actor directions and fixed spellingFilippos Karapetis
svn-id: r35496
2008-12-22logicalWidth -> widthFilippos Karapetis
logicalHeight -> height svn-id: r35488
2008-12-22- Split the SAGA resource manager in 3 different ones, depending on the ↵Filippos Karapetis
resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub - Added detection for the voice file of FTA2 svn-id: r35484
2008-12-21Added some more stubs for FTA2Filippos Karapetis
svn-id: r35475
2008-12-21- Added some stubs for the SAGA2 games dino and fta2Filippos Karapetis
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM) - Removed getDisplayWidth() and getDisplayHeight() svn-id: r35473
2008-12-21Cleaned up the mess with game IDs and game types: removed game types, ↵Filippos Karapetis
reduced the game IDs and added game features where necessary svn-id: r35467
2008-12-12- Stop passing the scene clip rectangle around for no reasonFilippos Karapetis
- More changes for dirty rectangle handling - Stop adding dirty rectangles that cover the whole screen for no reason - Dirty rectangle handling is still very buggy, so it's still disabled svn-id: r35314
2008-12-06All the screen drawing functions draw to the back buffer, so there is no ↵Filippos Karapetis
point in passing it everywhere svn-id: r35260
2008-12-06CleanupFilippos Karapetis
svn-id: r35259
2008-11-29Remove warnings from NDS build.Robin Watts
svn-id: r35172
2008-05-26Code cleanup:Filippos Karapetis
- Removed sagaresnames.h - Moved all special scenes to scene.h, and named them consistently (e.g. RID_ITE_OVERMAP_SCENE -> ITE_SCENE_OVERMAP) - Moved all resources which were used by the ITE intro into ite_introproc.cpp - Removed several defines which were only used once (e.g. the SFX names) - Reordered the GameResourceDescription resources so that ITE and IHNM specific resources are placed in the end - Updated the comment about the IHNM Mac music - Changed the callocs in loadPalAnim to mallocs, like in the rest of the code - Removed the MEM error svn-id: r32282
2008-02-23fix bug 1900244 "ITE: Strange animation when returning to prison cell"Andrew Kurushin
svn-id: r30924
2008-02-23Fix for bug #1900220 - "ITE: Missing text outline"Filippos Karapetis
svn-id: r30920
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-05Fix to remove a tab character from the GPL headerPaul Gilbert
svn-id: r30238
2007-12-20Removed clamp() and used the common CLIP template insteadFilippos Karapetis
svn-id: r29927
2007-12-13Use CLIP template for clipping in the SAGA engineFilippos Karapetis
svn-id: r29855
2007-11-11Don't draw objects with negative x/y values. Now, "ghost" objects are no ↵Filippos Karapetis
longer created in the top left corner of the screen when picked up/used. The creation of such ghost objects is a script bug which exists in the original interpreter of IHNM as well. Also, removed a relevant workaround for the note in the first screen of Gorrister's chapter, as it's no longer needed svn-id: r29477
2007-11-05Several subtitles-related IHNM fixes. Still not perfect.Eugene Sandulenko
svn-id: r29427
2007-09-18Fixed Ellen's state when loading a saved game in her chapterFilippos Karapetis
svn-id: r28938
2007-09-15Slight cleanup of the actor class: moved all of the actor walk code in a new ↵Filippos Karapetis
file and removed many unneeded includes svn-id: r28908
2007-09-15Palette fade in when a cutaway starts in IHNM is working now. Also, the fade ↵Filippos Karapetis
mode is properly set in all cases where palette fadeout is used. Some code formatting svn-id: r28904
2007-09-11Removed an obsolete FIXME. The code in that part matches the original, so ↵Filippos Karapetis
there doesn't seem to be any obvious reason for that FIXME svn-id: r28891
2007-09-11Change SAGA engine to properly use KeyState structs for handling keyboard inputMax Horn
svn-id: r28889
2007-08-25Removed the showactors flag and substituted it with RF_DISABLE_ACTORSFilippos Karapetis
svn-id: r28736