aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/actor.cpp
AgeCommit message (Collapse)Author
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
2007-08-24Updated some commentsFilippos Karapetis
svn-id: r28706
2007-08-22Sprite priorities are now calculated correctly for IHNMFilippos Karapetis
svn-id: r28694
2007-08-20Fix for bug #1776993 - "ITE: Cannot exit a room (regression)"Filippos Karapetis
svn-id: r28679
2007-08-01IHNM and ITE: ScummVM will no longer crash when loading games from the ↵Filippos Karapetis
command line svn-id: r28394
2007-07-31Implement some differences to the actor walking code in IHNMFilippos Karapetis
svn-id: r28352
2007-07-14Fix graphics glitch in the rat caves in ITE. Closes bug #1735437 - "ITE: ↵Filippos Karapetis
Sprite priority in rat caves" svn-id: r28064
2007-07-07When loading a scene, start showing actors only after the scene background ↵Filippos Karapetis
has been shown. This prevents some cases where some actors are shown prematurely before the next scene is loaded (e.g. in IHNM, when entering a chapter, after AM finishes his speech) svn-id: r27946
2007-07-06Modified ticksToMSec in IHNM, so that it waits for the correct amount of ↵Filippos Karapetis
time. Many animations which were not displayed quite right are fixed now, including some small syncing issues with video and sound in some places svn-id: r27939
2007-06-28Added a workaround to prevent the making fire animation from breaking at the ↵Filippos Karapetis
beehive scene in ITE svn-id: r27756
2007-06-20Added a workaround in IHNM for the compact disk in Ellen's chapterFilippos Karapetis
svn-id: r27557
2007-06-17Some more updates for saving/loading in IHNMFilippos Karapetis
svn-id: r27512