Commit Graph
93 Commits
Author SHA1 Message Date
Alex Bevilacqua 68b9df5a4b ASYLUM: identify a couple ActorStatus values 2021-05-17 15:37:24 +02:00
Littleboy 341bf99614 ASYLUM: Cleanup Screen class 2021-05-17 15:37:21 +02:00
Littleboy ee40059ed7 ASYLUM: Fix a bug in ScriptManager::opcodeJumpIfActorCoordinates() 2021-05-17 15:37:20 +02:00
Littleboy 919afab0bf ASYLUM: Fix running of encounters from the debug console
- Pass proper data to the Encounter::run() function
 - Add encounter data for the first 3 scenes
2021-05-17 15:37:19 +02:00
Littleboy 46d189ec9f ASYLUM: Add more error handling to script opcodes manipulating objects 2021-05-17 15:37:19 +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 f10091a616 ASYLUM: Implement saving of script data 2021-05-17 15:37:18 +02:00
Littleboy b1493f5be3 ASYLUM: Move puzzles handling to Puzzles class (formerly PuzzleData) 2021-05-17 15:37:18 +02:00
Littleboy 639ccdaff9 ASYLUM: Implement ActionArea::saveLoadWithSerializer() 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 8370719912 ASYLUM: Move Encounter disablePlayerOnExit flag to SharedData 2021-05-17 15:37:17 +02:00
Littleboy f106c50b36 ASYLUM: Move actorIndex to SharedData 2021-05-17 15:37:16 +02:00
Littleboy d1b6bbabfd ASYLUM: Move skipScriptProcessing and isEncounterRunning flags to SharedData 2021-05-17 15:37:16 +02:00
Littleboy c935ba9eae ASYLUM: Prefix debug output with type 2021-05-17 15:37:16 +02:00
Littleboy 54ad18711d ASYLUM: Implement ScriptManager::saveLoadWithSerializer() 2021-05-17 15:37:15 +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
Littleboy f8d11e354a ASYLUM: Cleanup script manager 2021-05-17 15:37:15 +02:00
Littleboy 0f14a09cd4 ASYLUM: Remove useless includes 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 1d7ac2949e ASYLUM: fix some warnings found by eclipse 2021-05-17 15:37:13 +02:00
Littleboy 28363f844d ASYLUM: Reorganize SharedData
- Add accessors for most variables
 - Add stubs for set/getChapter2Data()
2021-05-17 15:37:13 +02:00
Julien Templier 82ff79f04c ASYLUM: Implement Actor::canInteract() 2021-05-17 15:37:11 +02:00
Julien Templier fb8afdc6d6 ASYLUM: Palette and gamma functions update
- Identify dead code and remove unused parameters
- Rename several gamma and palette-relted functions
- Add stubs for palette fading functions
2021-05-17 15:37:10 +02:00
Julien Templier 55a9a133da ASYLUM: Implement the rest of Actor::process() 2021-05-17 15:37:08 +02:00
Julien Templier 64c70dea97 ASYLUM: Implement Actor::updateDirection()
- Rename all fields related to the next actor state (as set by script)
- Rename process_401830() to processNext()
2021-05-17 15:37:06 +02:00
Alex Bevilacqua a663c3da75 ASYLUM: fix a logic error in JumpIfGameFlag
Game scripts now progress more accurately in Scene 2
2021-05-17 15:37:05 +02:00
Julien Templier b15b5cb473 ASYLUM: Identify transparency field for Actor and Object
- Rename related script opcode and function
2021-05-17 15:37:03 +02:00
Julien Templier 9bc78f83db ASYLUM: Update ScriptManager
- Rename several opcodes
- Add enumeration for script Opcodes
- Rename some called actor methods
2021-05-17 15:37:03 +02:00
Julien Templier def09b8c20 ASYLUM: Rename some movement-related Actor methods 2021-05-17 15:37:02 +02:00
Julien Templier 9805f4cebd ASYLUM: Add some bound checking to ScriptManager::process() 2021-05-17 15:37:01 +02:00
Julien Templier 1db67c5c88 ASYLUM: Remove SVN keywords 2021-05-17 15:36:57 +02:00
Julien Templier db78a0c0f0 ASYLUM: Implement Actor::playSounds() 2021-05-17 15:36:56 +02:00
Julien Templier 8b9d471a7f ASYLUM: Implement parts of Actor::process() 2021-05-17 15:36:55 +02:00
Julien Templier 493593bf3e ASYLUM: Fix signed comparison warnings
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@774 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:52 +02:00
Julien Templier 22f77dd05c ASYLUM: Overhaul script processing
This fixes the following issues:
- screen freeze when examining objects
- infinite loop when playing some animations
- infinite loop when starting dialogs

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@755 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:49 +02:00
Julien Templier 2ec06b5da7 ASYLUM: Use per-entry current line in script manager
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@722 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:45 +02:00
Julien Templier 10b68af638 ASYLUM: Remove last use of _delayedSceneIndex and delayedVideoIndex in Script class
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@701 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:42 +02:00
Julien Templier 359794ec5d ASYLUM: Made several SharedData members public
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@700 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:42 +02:00
Julien Templier 46aa306513 ASYLUM: Implement loading of games
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@679 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:38 +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 e5b3e4c476 ASYLUM: Fix two warnings and rename two flags in Encounter class
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@658 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:35 +02:00
Julien Templier 49215b5c16 ASYLUM: Implement proper version of Scene::findActionArea()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@639 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:33 +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