Commit Graph
62 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
alxpnv 17abacd66a ASYLUM: convert a couple of workarounds to patches 2021-12-06 14:21:27 +03:00
Orgad Shaneh 57cdbc9072 ASYLUM: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
alxpnv 146941f368 ASYLUM: formatting 2021-10-25 13:07:57 +03:00
alxpnv 5708f630f7 ASYLUM: patch Chapter 2 Lockout bug 2021-09-14 12:43:56 +03:00
alxpnv 2fd785c12c ASYLUM: add support for Sanitarium Demo 2021-08-30 15:50:15 +03:00
alxpnv 8ba3df6821 ASYLUM: refactor inventory 2021-06-04 12:53:52 +03:00
alxpnv c81c046450 ASYLUM: clean up destructors 2021-05-17 15:37:58 +02:00
alxpnv ac43968c47 ASYLUM: formatting 2021-05-17 15:37:55 +02:00
alxpnv 06ebca09c3 ASYLUM: fix signed/unsigned comparison warnings 2021-05-17 15:37:54 +02:00
alxpnv ce59904eff ASYLUM: rework monster status update 2021-05-17 15:37:53 +02:00
alxpnv b2a9192793 ASYLUM: make AsylumEngine::getRandom() generate a number from [0; max) to match the original 2021-05-17 15:37:49 +02:00
alxpnv bc3ebf36db ASYLUM: implement Special::chapter11() 2021-05-17 15:37:48 +02:00
alxpnv 54fe4387c5 ASYLUM: corrections to Scare Crow behavior 2021-05-17 15:37:44 +02:00
Alex Bevilacqua c1e47d473d ASYLUM: include the chapter number in the worldstats instance inspector 2021-05-17 15:37:28 +02:00
Littleboy 03cd0ddf56 ASYLUM: Fix loading of saved games
- Do not add more actors/objects/actions when loading data (the correct scene was loaded and contains the data already)
 - Do not reset the script queue and empty the script array before loading the script list
2021-05-17 15:37:19 +02:00
Littleboy f09c34bc51 ASYLUM: Cleanup loading/saving of scene data 2021-05-17 15:37:17 +02:00
Littleboy 059c8820c3 ASYLUM: Implement saveLoadWithSerializer() for Actor and ActorData
- Move loading of actor data to a struct member function
2021-05-17 15:37:17 +02:00
Littleboy d6883a89a1 ASYLUM: Implement WorldStats::saveLoadWithSerializer()
- Add stubs for saveLoadWithSerializer() for ActionArea, Actor, ActorData and Object classes
2021-05-17 15:37:17 +02:00
Littleboy 78f275d796 ASYLUM: Cleanup Scene and related classes 2021-05-17 15:37:15 +02:00
Littleboy 5b0da5965c ASYLUM: Cleanup more base classes 2021-05-17 15:37:15 +02:00
Julien Templier 1db67c5c88 ASYLUM: Remove SVN keywords 2021-05-17 15:36:57 +02:00
Julien Templier 1526593cf0 ASYLUM: Replace several pairs of (x, y) parameters by Common::Point 2021-05-17 15:36:56 +02:00
Julien Templier c9985fe1cd ASYLUM: Implement Scene::updateMusic()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@696 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:41 +02:00
Julien Templier af09eeccee ASYLUM: Implement saving of games
- Added stubs for saveLoadWithSerializer

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@678 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:38 +02:00
Julien Templier 6e1b4a1801 ASYLUM: Finish implementation of Scene::updateCursor()
- Move scene cursor resources inside an array
- Read alternate scene cursor resources

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@632 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:32 +02:00
Julien Templier 4c7cb12983 ASYLUM: Update Scene::updateMouse() and Scene::updateAmbientSounds()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@630 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:31 +02:00
Julien Templier b729447782 ASYLUM: Rename ActionList to ScriptManager and move to engine class
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@626 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:31 +02:00
Julien Templier b0248c93fd ASYLUM: Remove obsolete methods from Scene class
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@620 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:30 +02:00
Julien Templier 814ac99ac4 ASYLUM: Update scene event handling and preload
- Implement Scene init and activate events
- Add stubs for other events
- Update SceneTitle to use proper resource ids and draw methods
- Remove some unused variables from Scene class

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@611 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:28 +02:00
Julien Templier e1d12045d0 ASYLUM: Refactor parts of Scene class
- Add stubs for event handlers
- Change WorldStats to take an engine pointer like all other classes
- Move copyToBackBufferClipped to screen class

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@610 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:28 +02:00
Julien Templier 2172d82d2e ASYLUM: Implement rest of game startup
- Add stubs for game loading & setup
- Add stub for sin/cos table initialization

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@609 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:28 +02:00
Julien Templier a326b61533 ASYLUM: Implement more menu click handling
- Add click handling to audio and keyboard settings
- Add proper sound sync between mixer and in-game values

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@605 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:28 +02:00
Julien Templier b3b0977555 ASYLUM: Implement more Actor::updateStatus* functions
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@565 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:21 +02:00
Julien Templier e812374b9f ASYLUM: Add stubs for loading ActorData as part of the scene (and cleanup scene loading a bit)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@554 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:20 +02:00
Julien Templier a778f4e7a4 ASYLUM: Scene loading & actor logic
- Move ActionArea loading to its own method
- Add actor rect shared data
- Implement one more Actor::updateStatus function
- Add several Actor helper functions
- Make x, y, x1, y1, x2, y2 private and store as Common::Point

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@550 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:19 +02:00
Julien Templier 5186ad9425 ASYLUM: Moved shared data to new structure
Some flags have a longer lifetime and should not be part of the scene instance.
Those are now part of the SharedData structure.
Also implements several actor::updateStatus methods, using the new shared data

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@548 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:19 +02:00
Julien Templier 3e6f065a91 ASYLUM: Cleanup Pass 3
- Add proper init code for Object & BlowUpPuzzle classes
- Use Common::Rational in a few more places
- Add casts & const modifiers in proper places

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@547 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier 8528b9d964 ASYLUM: Cleanup Pass 2
- Add proper init code for WorldStats
- Add some missing deletes in destructors (in particular Scene)
- Add const modifiers & casts in several places
- Fix some off-by-one array accesses
- Add checks for NULL in several classes

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@546 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier b475ba03a8 ASYLUM: Implement special logic for chapter 8
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@537 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:17 +02:00
Julien Templier a40c1e7484 ASYLUM: Implement changeMusic
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@530 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:16 +02:00
Alex Bevilacqua d849243840 ASYLUM: added a 'world' console command to show a worldstats summary
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@525 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:15 +02:00
Julien Templier 2335f8f578 ASYLUM: Implement WorldStats::setWheelObjects() and Scene::playIntroSpeech()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@523 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:15 +02:00
Julien Templier 977afaa9c3 ASYLUM: Actor class was reading too much data
Scenes > 5 are now loading a bit further

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@520 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:14 +02:00
Julien Templier 2532fcd021 ASYLUM: Refactor game start and scene loading
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@514 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:14 +02:00
Julien Templier d7c22354a6 ASYLUM: Add ResourceManager class
It will keep track of opened resource files and simplify handling of resource packs

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@513 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:13 +02:00
Julien Templier 51b9a95e51 ASYLUM: Get rid of numActors/Objects/Actions
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@506 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:12 +02:00
Julien Templier eae999fed4 ASYLUM: Implement special logic for chapter 2 (remaining part), 5 & 9
- Fix graphic resource leak in Actor & Object
- Replace WorldStats targetX, targetY and following variables into
a coordinate array.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@498 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:11 +02:00
Julien Templier 659a3e281e ASYLUM: Reduce header inter-dependency
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@494 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:10 +02:00
Julien Templier 582794ff12 ASYLUM: Implement special logic for chapters 1, parts of 2, 3, 4 and 6
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@488 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:10 +02:00