Commit Graph

133 Commits

Author SHA1 Message Date
alxpnv
ac43968c47
ASYLUM: formatting 2021-05-17 15:37:55 +02:00
alxpnv
48e164b2d7
ASYLUM: clean up includes 2021-05-17 15:37:54 +02:00
alxpnv
72a3f0c365
ASYLUM: replace spaces in indentation with tabs 2021-05-17 15:37:52 +02:00
alxpnv
d15af0f4b0
ASYLUM: fix segfault in PuzzleHiveControl::hitTest1() 2021-05-17 15:37:51 +02:00
alxpnv
a6140c4944
ASYLUM: minor fixes (mostly formatting) 2021-05-17 15:37:51 +02:00
alxpnv
b2a9192793
ASYLUM: make AsylumEngine::getRandom() generate a number from [0; max) to match the original 2021-05-17 15:37:49 +02:00
alxpnv
f94c11658a
ASYLUM: fix background drawing in some of the puzzles 2021-05-17 15:37:47 +02:00
alxpnv
982bd7c359
ASYLUM: set a game flag when Hive Machine puzzle is solved 2021-05-17 15:37:46 +02:00
alxpnv
54fe4387c5
ASYLUM: corrections to Scare Crow behavior 2021-05-17 15:37:44 +02:00
alxpnv
bf523e9918
ASYLUM: set a game flag when the Hive Control puzzle is solved 2021-05-17 15:37:42 +02:00
alxpnv
ea894a619f
ASYLUM: (Writings puzzle) implement text masking 2021-05-17 15:37:40 +02:00
alxpnv
c6087b8755
ASYLUM: fix a few bugs in the Morgue Door puzzle 2021-05-17 15:37:38 +02:00
alxpnv
988c66f01d
ASYLUM: various fixes to the Board puzzles. Chapter 5 is completable now 2021-05-17 15:37:38 +02:00
alxpnv
de51014306
ASYLUM: fix sound resource ids 2021-05-17 15:37:38 +02:00
alxpnv
617955615d
ASYLUM: implement PuzzlePipes::saveLoadWithSerializer() 2021-05-17 15:37:36 +02:00
alxpnv
c232bc5dec
ASYLUM: fix a wrong index 2021-05-17 15:37:35 +02:00
alxpnv
6678429e49
ASYLUM: reorder PuzzlePipes::_connectors to match the original 2021-05-17 15:37:35 +02:00
alxpnv
560d0a68ad
ASYLUM: don't reset the Pipes puzzle's data each time it's being run 2021-05-17 15:37:35 +02:00
alxpnv
9f5008b18d
ASYLUM: set a game flag when the Pipes puzzle is solved 2021-05-17 15:37:35 +02:00
alxpnv
19712bac19
ASYLUM: restore palette when VCR puzzle is completed 2021-05-17 15:37:34 +02:00
D G Turner
ffe854efe7
ASYLUM: Fix Various GCC Compiler Warnings. 2021-05-17 15:37:32 +02:00
Alex Bevilacqua
baf4fa93cb
ASYLUM: access surface pixels via getPixels() 2021-05-17 15:37:27 +02:00
Alexander
2c1b1d3cf4
ASYLUM: PuzzleBoard: fix checkSlots() 2021-05-17 15:37:24 +02:00
Alexander
d61d51f190
ASYLUM: HiveControl puzzle: fix minor glitch in updateScreen() 2021-05-17 15:37:24 +02:00
Alexander
a67ea83e23
ASYLUM: HiveControl puzzle: fix a bug
_leverPosition - _prevLeverPosition should be signed.
2021-05-17 15:37:23 +02:00
Alexander
1fc9a8a837
ASYLUM: HiveControl puzzle: add completion checks 2021-05-17 15:37:23 +02:00
Alexander
be21e4e028
ASYLUM: Writings puzzle: fix an infinite loop in drawBackground() 2021-05-17 15:37:23 +02:00
Alexander
b82752e649
ASYLUM: Pipes puzzle: fix initialization 2021-05-17 15:37:23 +02:00
Alex Bevilacqua
407c96b3d2
ASYLUM: fix warnings 2021-05-17 15:37:22 +02:00
Alex Bevilacqua
083afccd67
ASYLUM: Finish implementation of TimeMachine puzzle
patch contributed by midstream
2021-05-17 15:37:21 +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
6eb0271440
ASYLUM: Implement saveLoadWithSerializer() for most of the puzzles 2021-05-17 15:37:18 +02:00
Littleboy
34b50ab2f3
ASYLUM: Add stubs for puzzles saveLoadWithSerializer() 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
5b0da5965c
ASYLUM: Cleanup more base classes 2021-05-17 15:37:15 +02:00
Littleboy
44540643e8
ASYLUM: Cleanup base classes
- Made some public members of cursors private and add accessors
 - Add const modifiers as needed
 - Add missing casts
 - Add some null-pointers checks
 - etc.
2021-05-17 15:37:15 +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
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
Littleboy
28363f844d
ASYLUM: Reorganize SharedData
- Add accessors for most variables
 - Add stubs for set/getChapter2Data()
2021-05-17 15:37:13 +02:00
Littleboy
906cbe7a23
ASYLUM: Rename puzzles/data.h to puzzles/puzzledata.h 2021-05-17 15:37:12 +02:00
Julien Templier
6201a4cf9e
ASYLUM: Implement more palette related functions
- Use Screen::setupPalette() in Video class instead of setting the palette directly
- Implement Screen::updatePalette()
- Cleanup usage of Screen::setupPalette()
2021-05-17 15:37:10 +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
1ba0c2a354
ASYLUM: Fix crash when initializing Board puzzles
The fixed size text buffer was too small to hold all the text for two of the puzzles. This replaces it with a Common::String
2021-05-17 15:37:09 +02:00
Julien Templier
6b4f3435c0
ASYLUM: Remove Puzzle::reset() functions
- Recreate all puzzle instances on reset
- Clear shared data directly from the AsylumEngine::reset() function
2021-05-17 15:37:08 +02:00
Julien Templier
c91086bee5
ASYLUM: Fix compilation with Visual Studio 2021-05-17 15:37:08 +02:00
Alexander
83cbf040a5
ASYLUM: Hive machine puzzle: add missing playSound() call and rename counters 2021-05-17 15:37:07 +02:00
Alexander
fd3e63e95e
ASYLUM: Hive machine puzzle: fix typo 2021-05-17 15:37:07 +02:00
Alexander
185aedd05b
ASYLUM: Pipes puzzle: fix lamp indicators 2021-05-17 15:37:07 +02:00
Alexander
defb533d1e
ASYLUM: Pipes puzzle: replace log(x)/log(2) with Common::intLog2(x) 2021-05-17 15:37:07 +02:00