Commit Graph
212 Commits
Author SHA1 Message Date
alxpnv 5bed7c1c55 ASYLUM: sync with removeReactionHive 2021-05-17 15:37:33 +02:00
alxpnv 4f7978b243 ASYLUM: rework removeReactionHive 2021-05-17 15:37:33 +02:00
alxpnv 3c53386332 ASYLUM: fix an index 2021-05-17 15:37:33 +02:00
Alexandre Fontoura b8a3047e3f ASYLUM: Fixed correct resourceId while Actor is disabled. 2021-05-17 15:37:30 +02:00
xesfnet c7a7025ca5 ASYLUM: Fixed wrong palette info attached that was causing a segmentation fault. 2021-05-17 15:37:29 +02:00
Alexandre Fontoura bf2d5d7765 ASYLUM: Fixed wrong coordinate check in Actor canMoveCheckActors 2021-05-17 15:37:29 +02:00
Alex Bevilacqua 7388be8824 ASYLUM: script debugging in actor code 2021-05-17 15:37:29 +02:00
xesf 0dc2ab3402 ASYLUM: Fixed various issues in Actor position calculations. Still missing something yet to make Max climb the first stairs. Anyway, this corrects a lot of incorrect script behaviors. 2021-05-17 15:37:26 +02:00
Alex Bevilacqua cdb9c748c0 ASYLUM: fix a logic error in Actor::update 2021-05-17 15:37:25 +02:00
Alex Bevilacqua 0ab8d0c858 ASYLUM: add a some debug output and rename ActorDirection
The ActorDirection rename here is to make the enum value for West
use an English value (W) as opposed to a French value (O).
2021-05-17 15:37:25 +02:00
Alex Bevilacqua 0553f5dfd8 ASYLUM: added a FIXME to Actor::update() for kActorStatusWalkingTo 2021-05-17 15:37:24 +02:00
Alex Bevilacqua 9277116e09 ASYLUM: identify more ActorStatus values 2021-05-17 15:37:24 +02:00
Alex Bevilacqua 68b9df5a4b ASYLUM: identify a couple ActorStatus values 2021-05-17 15:37:24 +02:00
Littleboy f929f58e9a ASYLUM: Cleanup Actor class 2021-05-17 15:37:21 +02:00
Littleboy b67ba25820 ASYLUM: Add missing call to Special::run() in Actor::update() 2021-05-17 15:37:20 +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 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 0f14a09cd4 ASYLUM: Remove useless includes 2021-05-17 15:37:14 +02:00
Littleboy ff0d80587f ASYLUM: Change text coordinates parameters to use Common::Point 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 2e9ab6929a ASYLUM: revert commits aac7e28, 326ec63 and bfe63c2 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 71e1afe2c4 ASYLUM: make a couple actor fields int32 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 30b4f0b931 ASYLUM: fixed a bug in Actor::updateFinish()
We weren't checking the area flags and were running an actor reaction
immediately after the intro script completed.
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
Littleboy f6fd9adc50 ASYLUM: Implement Actor::updateStatus12_Chapter2_Actor11() 2021-05-17 15:37:11 +02:00
Julien Templier d4e5d66e59 ASYLUM: Implement Actor::updateStatus18_Chapter2_Actor11() 2021-05-17 15:37:11 +02:00
Julien Templier f6733c0cfb ASYLUM: Update actor distances functions 2021-05-17 15:37:11 +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 f453ab6da7 ASYLUM: Implement Actor::updateStatus15_Chapter2() 2021-05-17 15:37:10 +02:00
Julien Templier 188264b94f ASYLUM: Implement Actor::updateStatus15_Chapter2_Actor11() 2021-05-17 15:37:10 +02:00
Julien Templier 88d0d33464 ASYLUM: Cleanup Actor::updateStatus15_Chapter2_Player()
This function is only called for the current player and thus can be simplified
2021-05-17 15:37:09 +02:00
Julien Templier 6879945591 ASYLUM: Implement the missing part of Special::chapter2() 2021-05-17 15:37:09 +02:00
Julien Templier 96abeb1672 ASYLUM: Implement Actor::updateStatus15_Chapter2_Player() 2021-05-17 15:37:09 +02:00
Julien Templier 203e18669e ASYLUM: Implement Actor::updateStatus14_Chapter2() 2021-05-17 15:37:09 +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
Julien Templier 1706cc2ff7 ASYLUM: Implement Actor::processAction() 2021-05-17 15:37:06 +02:00
Julien Templier 9d54c6b5fc ASYLUM: Rename several Actor methods 2021-05-17 15:37:03 +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 0c36e2755a ASYLUM: Fix checking of flags when processing action areas
This fixes the player being stuck in place at the beginning (the area has a flag and the player can't move until that flag is set by scripts)
Also add an optional highlight for the current polygon to aid debugging
2021-05-17 15:37:02 +02:00
Julien Templier 5b3efe8192 ASYLUM: Cleanup polygon class 2021-05-17 15:37:02 +02:00
Julien Templier def09b8c20 ASYLUM: Rename some movement-related Actor methods 2021-05-17 15:37:02 +02:00
Julien Templier 010fd87b59 ASYLUM: Implement Actor::processAction* helper functions 2021-05-17 15:37:00 +02:00
Julien Templier 345d0cf909 ASYLUM: Merge getDistanceForFrame() and getDistance() 2021-05-17 15:37:00 +02:00
Julien Templier 78681cf803 ASYLUM: Correct usage and implementation of Actor::getDistance() 2021-05-17 15:37:00 +02:00
Julien Templier 6b20fdb4e4 ASYLUM: Rename arrays holding the distances for each actor frame index 2021-05-17 15:36:59 +02:00