Commit Graph
137148 Commits
Author SHA1 Message Date
Alex Bevilacqua c15eb6fe8f ASYLUM: abstract some variable accessors
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@265 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:35 +02:00
Alex Bevilacqua def25effdc ASYLUM: * killed a couple old forward declarations
* removed WorldStats variable instance

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@264 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:35 +02:00
Alex Bevilacqua 0a4aa79d62 ASYLUM: * Removed the setTarget (action/barrier) logic that was started, but never used (it's not necessary as target info is determined by various script actions).
* INCOMPLETE kEnableBarriers and kEnableActor. I'm slowly working through this, but figure if maybe someone sees how it's coming, they can hope in and lend a hand ;)

* added ALL opcode cases, along with their corresponding hex values. This is just for the time being, and is for my own reference. It will NOT be part of the final code once the opcode methods have been fully implemented.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@263 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:35 +02:00
Filippos Karapetis e86c52db38 ASYLUM: Proper code formatting (refer to the relevant ScummVM wiki page here: http://wiki.scummvm.org/index.php/Code_Formatting_Conventions)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@262 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Alex Bevilacqua 8a228b5ee7 ASYLUM: Cleanup
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@261 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Alex Bevilacqua 158562f095 ASYLUM: svn props
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@260 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Alexandre Fontoura 927804b212 ASYLUM: First steps for BlowUpPuzzles
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@259 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Joseph Davies ac7e83c21a ASYLUM: Formatting.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@256 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Joseph Davies c7799f2fa6 ASYLUM: Named Scene movement fields. Added function for setting the view window.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@255 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Joseph Davies 54108200ee ASYLUM: Cleaned up extra newline. Debug function inserts one automatically.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@254 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:34 +02:00
Joseph Davies 2b6a4d17c5 ASYLUM: Added kJumpIfGameFlag case.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@253 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua aab9670897 ASYLUM: Properly initialize the gameflags array and set the (what I'm assuming to be) ENTER_SCENE flag (though it's listed as Process Action List in the wiki at the moment .. which could be right)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@251 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua 476f1d207a ASYLUM: started working on game flags. Also implemented a couple unknown fields on the scene
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@250 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua d36733373b ASYLUM: lock/unlock input event processing depending on whether the show/hide cursor action has been processed
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@249 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua 5cbfdcd695 ASYLUM: Started work on pathfinding. Currently I've disabled screen edge scrolling, and am drawing the active walk-able region's polygon
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@247 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua 5939070342 ASYLUM: rolled checks for delayed scene changes and video into processDelayedEvents()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@246 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua 4e2fe3e3a8 ASYLUM: * clear debug channels on engine destruction
* cleanup

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@245 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:33 +02:00
Alex Bevilacqua 44e189d2d9 ASYLUM: * printf -> debugC
* added bounds check to scene switch console command
* fixed crash when switching scenes

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@244 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Alex Bevilacqua 0af5fd7f83 ASYLUM: minor cleanup and debug output (sev, those printf's will be removed as soon as they've served their purpose ... scout's honour :D)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@243 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Alex Bevilacqua 16ea284ef6 ASYLUM: * re-enabled script debugging
* added kDebugScripts debugC calls back to processActionList()
* cleanup

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@242 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Alex Bevilacqua 3cfa2cbb4c ASYLUM: Reworked the interpreter into a singleton ScriptManager. This will allow scripts to be run without needing access to an engine variable, and will allow us to remove some of the scene processing hacks.
Scripts are now being run on click events. This is pretty buggy, but it's to be expected at this point :)

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@240 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Alex Bevilacqua f43b5843c8 ASYLUM: Since the game polygons list doesn't cover ALL interactive regions (hotspots), I added a method to draw active barriers as well. Though these have a polyIdx property, it's always zero, so I'm going based off the bounding box.
Also added a variable to the console to manage this, and renamed debugpolygons to "showpolygons"

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@239 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Eugene Sandulenko 6380032d48 ASYLUM: Turn printf() into respective debug() or warning(). Printf is not portable
enough for our purposes.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@238 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Eugene Sandulenko f46276e7d1 ASYLUM: Format last switch() statement. They all were indented in a wrong way.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@237 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:32 +02:00
Eugene Sandulenko de517ddf1f ASYLUM: More formatting. Basically tabify. SOmebody has wrong indentation setup. All
indents have to be tabs, not spaces.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@236 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Eugene Sandulenko bc773b9544 ASYLUM: Formatting
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@235 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Filippos Karapetis a259fb4d98 ASYLUM: Updated the MSVC project file (added interpreter.*)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@234 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Filippos Karapetis adf21355ee ASYLUM: Fixed warnings
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@233 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Joseph Davies c2a7b40396 ASYLUM: Commit for changes accidentally left out of r231.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@232 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Joseph Davies 4245700936 ASYLUM: -- Added new console commands "script" and "scene" to run arbitrary scripts by number and to change scenes, respectively.
-- Modified scope of access for Interpreter so that it can queue video playback and scene changes.
-- Added delayedSceneChange capability to support console and script commands.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@231 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Joseph Davies 71dba6739f ASYLUM: Added temporary resource check to work around crash in Scene 6.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@230 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:31 +02:00
Joseph Davies 90759f311a ASYLUM: -- Removed temporary testing value left in kSetActorStats case.
-- Added loop control (still needs failure code).
-- Added setActionByIndex to actor to support kSetActorStats instruction data.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@229 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies 7795ce38d8 ASYLUM: Added support for polygon testing inside bounding boxes.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@228 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies 19d9e775b9 ASYLUM: Fixed warnings.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@227 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Alex Bevilacqua a9ff616822 ASYLUM: svn:keywords
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@226 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies 7f37100008 ASYLUM: Fixed SVN keywords.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@225 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies 34e750d48d ASYLUM: Added preliminary script interpreter and associated support functions and fixes. Added Debug channels.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@224 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies 4c4a9d5df5 ASYLUM: Fixed accidental misnaming - renamed font resources to match naming conventions.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@218 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:30 +02:00
Joseph Davies b8a92e1a08 ASYLUM: Named CommonResource font resources.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@217 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Alex Bevilacqua 9c7033c6a0 ASYLUM: * cleanup
* renamed all public variables that were underscore-prefixed (unless these were meant to be controlled via getter/setters, but I doubt it :P)
* silenced a warning in screen.cpp

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@215 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies 3b8e1235f5 ASYLUM: Renamed previously unknown variable for action script length.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@214 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies c578b8d2ed ASYLUM: Added extra logic to handle large (multi-screen) polygons.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@211 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies e85dbe333c ASYLUM: Modified ShowPolygons to draw Polygons rather than bounding boxes. Fixed mouse click position detection to incorporate viewport offset.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@210 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies b8451e3c78 ASYLUM: Fixed minor error in blitting code causing image corruption in surfaces drawn partially offscreen.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@209 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies b22dab25e6 ASYLUM: Fixed order for Polygon point data.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@208 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:29 +02:00
Joseph Davies c8a173e5eb ASYLUM: Fixed laggy cursor by removing exponential delay inside event loop. Changed delay to match apparent animation speed of original.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@207 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:28 +02:00
Filippos Karapetis d4c8e85b8a ASYLUM: Some initial code for the "play speech" script command
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@206 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:28 +02:00
Alexandre Fontoura f65c0ba31e ASYLUM: Scene ActorItems fields read.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@205 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:28 +02:00
Alexandre Fontoura 409e176e46 ASYLUM: Scene WorldStats fields read added.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@204 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:28 +02:00
Alexandre Fontoura 96369ef78f ASYLUM: More scene fields read. Action item under WorldStats renamed.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@203 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:28 +02:00