Commit Graph
27 Commits
Author SHA1 Message Date
alxpnv 887436ba89 ASYLUM: add a shortcut to show the in-game menu 2022-08-02 12:59:35 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
alxpnv 0c64bb82fa ASYLUM: speed up puzzle animations a little bit
Suggested by Attx. Thanks!
2021-10-22 12:00:12 +03:00
alxpnv 110af4fae4 ASYLUM: slow down puzzle animations 2021-10-19 15:18:26 +03:00
alxpnv da95daf727 ASYLUM: remove Screen::takeScreenshot() 2021-06-17 15:40:10 +03:00
alxpnv c81c046450 ASYLUM: clean up destructors 2021-05-17 15:37:58 +02:00
alxpnv 77a35a5c75 ASYLUM: get rid of global constructors 2021-05-17 15:37:56 +02:00
alxpnv ac43968c47 ASYLUM: formatting 2021-05-17 15:37:55 +02:00
Littleboy 2f18c1cb36 ASYLUM: Misc. cleanups
- Document some debug calls
 - Remove unused parameters names
 - Add const as needed
 - Change some coordinates values to int16
2021-05-17 15:37:21 +02:00
Littleboy b1493f5be3 ASYLUM: Move puzzles handling to Puzzles class (formerly PuzzleData) 2021-05-17 15:37:18 +02:00
Littleboy b9cb91d016 ASYLUM: Cleanup puzzles
- Add missing casts
 - Remove unused parameters
 - Add consts modifiers
 - Fix formating
 - etc.
2021-05-17 15:37:15 +02:00
Julien Templier 5b3efe8192 ASYLUM: Cleanup polygon class 2021-05-17 15:37:02 +02:00
Julien Templier 1db67c5c88 ASYLUM: Remove SVN keywords 2021-05-17 15:36:57 +02:00
Alex Bevilacqua be33e9b481 ASYLUM: fix initialization on Linux systems
The casting of event.type to uint32 was failing silently on non-Windows
systems. Replacing these with int32 casts resolved the issue.

Thanks to Littleboy for spotting this.
2021-05-17 15:36:53 +02:00
Alex Bevilacqua baa64d84d4 ASYLUM: replace exit() with exitPuzzle() or exitEncounter()
This resolves an issue with exit() recently being declared FORBIDDEN
in master
2021-05-17 15:36:53 +02:00
Julien Templier 8b02d1b6c6 ASYLUM: Revert back to previous Puzzle::key() implementation
- Add new keyExit() method for other puzzles

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@739 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:47 +02:00
Julien Templier b52bed63d8 ASYLUM: Refactor puzzle event handling
- Change default key method to switch back to the scene on right click
- Pass current event to all event handling methods
- Implement mouseLeftDown, mouseLeftUp, mouseRightDown and/or mouseRighUp instead of a single mouse method
- Remove most uses of Cursor::position()

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@738 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:47 +02:00
Julien Templier 1150dcd7b3 ASYLUM: Use Polygon contains function in Puzzle::hitTest instead of custom code
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@716 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:44 +02:00
Julien Templier 42adf9dc52 ASYLUM: Implement Puzzle::hitTest helper functions
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@712 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:43 +02:00
Julien Templier c19fba0b1f ASYLUM: Implement handleEvent in Puzzle class and let child classes implement init, key & mouse handlers
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@704 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:42 +02:00
Julien Templier d45a2fd4a1 ASYLUM: Copy backbuffer to screen in Screen::clear()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@676 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:38 +02:00
Julien Templier 34a6ee87cf ASYLUM: Add Puzzle::exit() default implementation
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@674 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:38 +02:00
Julien Templier a91edc92eb ASYLUM: Update Puzzle to new event handling
- Remove obsolete methods
- Add default key() event handler
- Stub VCR puzzle

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@673 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:38 +02:00
Julien Templier 436a6f3ef2 ASYLUM: Rename puzzle classes
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@665 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:36 +02:00
Julien Templier 10615c7aed ASYLUM: Init puzzle on first use (the background id is scene-dependent)
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@585 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:24 +02:00
Julien Templier d2c8b7e83f ASYLUM: Move VCR puzzle to a separate file
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@581 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:24 +02:00
Julien Templier df58690e9c ASYLUM: Move puzzle class to a separate puzzles directory
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@580 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:23 +02:00