Alex Bevilacqua
cc43cc88a3
ASYLUM: Major overhaul of data casting. Converted all uint32 member variables and fields to int32 (and uint16 to int16) and update the associated reads. There may be regressions as a result, but so far everything seems to be working as expected.
...
Also combed through the source and silenced 99% of the warnings that GCC was generating.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@404 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:57 +02:00
Alex Bevilacqua
20184c8486
ASYLUM: Starting to implement proper actionlist processing using the scripts queue.
...
With this update, I've renamed all the structs within the actionlist, so be forewarned ;)
This update doesn't work 100% though, as the processing loop exits early when there is a kWaitForFrame command cycling. I'm checking this is so the rest of the team can see the direction (and hopefully fix these for me while I'm at work :P).
I've also removed the hard-setting of script indices within the actionlist in favour of pulling them from the script queue instead. This breaks console debugging compatibility for now, but can be easily re-instated by pushing a script into the queue, as opposed to just setting it directly.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@395 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:55 +02:00
Alex Bevilacqua
ab44e5c66b
ASYLUM: Ran our engine through AStyle :P
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@366 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:51 +02:00
Alex Bevilacqua
ddcb9beab2
ASYLUM: Removed Shared singleton. Moved getAngle() to actor class (only place it's used so far). Added screen() and scene() getters to the engine for classes that need the references.
...
Moved a couple methods from the barrier class to worldstats (makes a bit more sense)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@355 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:49 +02:00
Alex Bevilacqua
badb49ed6d
ASYLUM: Moved the gameflags from SharedResources to the AsylumEngine. Also removed the OSystem member from the SharedResources (slowly phasing out the last singleton)
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@351 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:48 +02:00
Alex Bevilacqua
b4385f8e9e
ASYLUM: Removed the ScriptManager. The singleton functionality is rolled into the actionlist class (where it belongs)
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@348 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:48 +02:00
Alex Bevilacqua
2cb80c6d8d
ASYLUM: Removed sceneres. Scene resource loading is now handled in the scene constructor, and the parsing of worldstats, polygons and actions is farmed out to the relevant classes.
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@347 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:48 +02:00
Alex Bevilacqua
feb852bd8b
ASYLUM: Reworked the action list processor to use a function map as opposed to a switch tree. This is a cleaner solution, thought i'm not sure if there's a tradeoff as far as efficiency is concerned.
...
Also implemented the angle processing algorithm (and the associated lookup tables)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@328 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:45 +02:00
Alex Bevilacqua
d6d90b7e3a
ASYLUM: Add command "dump_action". This currently just prints out a list of ALL available actionAreas within the current scene resource. The logic to print out a single actionArea will come once the getActionAreaById (or index) is implemented.
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@307 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:42 +02:00
Alex Bevilacqua
08d786e46e
ASYLUM: * Add a reference to the scene resource's actor[0] to the mainActor instance (this is an interim hack until we refactor the actor class to include ALL actor data)
...
* Add a toggle_flag command to the console
* Clear flag 183 when the current action has been processessed
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@303 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:42 +02:00
Alexandre Fontoura
d9348e1388
ASYLUM: Reorganization Flags under Shared for the upcoming work on Update routines. Start working on UpdateBarrier(incomplete)
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@302 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:41 +02:00
Alex Bevilacqua
7cef62988d
ASYLUM: * Added a console command to show the currently active game flags
...
* Tweaked the logic for the JumpIfFlagSet opcode
* Added the two flag registrations that would be set if the intro ran to the main engine (so we can disable the intro for now)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@301 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:41 +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
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
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
Filippos Karapetis
824373cb85
ASYLUM: - Removed duplicate code
...
- Added a console variable to toggle polygon visibility
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@191 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:27 +02:00
Filippos Karapetis
762c5d0fa2
ASYLUM: Added a debug console, with a command to play any of the game's videos. Cleaned up the AsylumEngine class a bit
...
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@188 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:35:26 +02:00