Commit graph

156 commits

Author SHA1 Message Date
Strangerke
7f5826cfcb LAB: Fix check of ending animation, some renaming 2015-12-23 21:35:30 +01:00
Filippos Karapetis
3e8eaa2c35 LAB: Use Common::String for strings, removing a ton of memory leaks
Also, add a method to properly free room views
2015-12-23 21:35:27 +01:00
Filippos Karapetis
eb70efc900 LAB: Simplify decIncInv() 2015-12-23 21:34:10 +01:00
Filippos Karapetis
f1bb844e90 LAB: Fix a memory leak in the Image class 2015-12-23 21:34:10 +01:00
Strangerke
5c360b4021 LAB: Remove dead code 2015-12-23 21:34:09 +01:00
Strangerke
b3b3c0cfd5 LAB: Remove parameters from processMainButton and performAction 2015-12-23 21:34:09 +01:00
Filippos Karapetis
c5528a631d LAB: Handle some differences of the Amiga version
The Amiga version is still not working, as the CONTROL and INV files
are missing, and the format of the font files is different
2015-12-23 21:34:09 +01:00
Filippos Karapetis
0004488441 LAB: Simplify decIncInv() and move action handling out of fromCrumbs() 2015-12-23 21:34:09 +01:00
Filippos Karapetis
832d87e0bf LAB: Use Common::Point in IntuiMessage 2015-12-23 21:34:08 +01:00
Filippos Karapetis
b6bed0aed7 LAB: Simplify mouse button handling 2015-12-23 21:34:08 +01:00
Strangerke
054a7a1e19 LAB: Use Common::Rect in functions related to flowText (WIP) 2015-12-23 21:34:07 +01:00
Filippos Karapetis
5aef1367e2 LAB: Remove useless checks, and clean up the mouse processing code 2015-12-23 21:34:07 +01:00
Filippos Karapetis
005e077551 LAB: Some renames 2015-12-23 21:34:07 +01:00
Strangerke
5ed11d721c LAB: Verify the appropriate use of parenthesis in if statements 2015-12-23 21:34:06 +01:00
Strangerke
9c7e372a21 LAB: make takeItem use Common::Point, some refactoring 2015-12-23 21:34:06 +01:00
Strangerke
dd06c83280 LAB: Make more use of kButton enum 2015-12-23 21:34:06 +01:00
Strangerke
de6de51e8b LAB: More use of Common::KEYCODEs 2015-12-23 21:34:06 +01:00
Strangerke
802a0d09dc LAB: Use Common::KEYCODE in several places 2015-12-23 21:34:06 +01:00
Strangerke
eab6682929 LAB: Add some checks to quit the game quickly when closing ScummVM 2015-12-23 21:34:06 +01:00
Strangerke
b42ed683b8 LAB: Fix the style of some if/else statements 2015-12-23 21:34:06 +01:00
Strangerke
6193626f7c LAB: Fix two deletes 2015-12-23 21:34:06 +01:00
Filippos Karapetis
2cfac1c4b0 LAB: Fix compilation 2015-12-23 21:34:05 +01:00
Filippos Karapetis
b661f2f8e6 LAB: Use enums for the interface buttons 2015-12-23 21:34:05 +01:00
Filippos Karapetis
521652e436 LAB: Move some code from fromCrumbs() into separate functions
This makes this huge function a bit easier to read and understand
2015-12-23 21:34:05 +01:00
Strangerke
52d0243eff LAB: Fix the coding style of a some if/else statements 2015-12-23 21:34:05 +01:00
Eugene Sandulenko
cbf4c876e5 LAB: Turned another if chain into switch 2015-12-23 21:34:04 +01:00
Eugene Sandulenko
1120958dac LAB: Removed useless condition 2015-12-23 21:34:04 +01:00
Eugene Sandulenko
5848a20af2 LAB: Turned another chain of ifs into a switch statement 2015-12-23 21:34:04 +01:00
Eugene Sandulenko
abb3e233bf LAB: More code simplification 2015-12-23 21:34:04 +01:00
Eugene Sandulenko
ee73e5ca15 LAB: Simplified code 2015-12-23 21:34:04 +01:00
Eugene Sandulenko
a7d5ae6b4b LAB: Converted ifs into switch() 2015-12-23 21:34:04 +01:00
Strangerke
ad54a75b85 LAB: Add _vm to Image class 2015-12-23 21:34:03 +01:00
Strangerke
2b91bf2f34 LAB: Some renaming in EventMan 2015-12-23 21:34:03 +01:00
Filippos Karapetis
e994c90d9b LAB: Simplify the crumb wait time code 2015-12-23 21:34:03 +01:00
Filippos Karapetis
2332fb617c LAB: Rename gadget to button 2015-12-23 21:34:03 +01:00
Filippos Karapetis
c883769adc LAB: Move the LAB2 teaser screen in a separate function 2015-12-23 21:34:03 +01:00
Filippos Karapetis
0dcfd74b84 LAB: Simplify fromCrumbs() 2015-12-23 21:34:02 +01:00
Filippos Karapetis
577b60d785 LAB: Move getMsg to the event manager 2015-12-23 21:34:02 +01:00
Strangerke
7c1401264c LAB: Remove interface.h, get rid of a lot of useless defines 2015-12-23 21:34:02 +01:00
Filippos Karapetis
cd85e5dd34 LAB: Remove unneeded static 2015-12-23 21:34:01 +01:00
Filippos Karapetis
452c20ab8a LAB: Get rid of the rest of the custom time delay functions 2015-12-23 21:34:01 +01:00
Filippos Karapetis
1b0a7db0b6 LAB: Get rid of getTime(), readBlock() and getRandom()
Also, simplify some time-related functions
2015-12-23 21:34:01 +01:00
Strangerke
7bb45a8eaa LAB: Move timing functions to the utility class 2015-12-23 21:34:01 +01:00
Filippos Karapetis
4fb53ad170 LAB: Some renames, simplified saveGame() and loadGame() 2015-12-23 21:34:00 +01:00
Filippos Karapetis
46a25b93ab LAB: Rewrite some code using switch statements 2015-12-23 21:34:00 +01:00
Filippos Karapetis
8f5c91ee07 LAB: Move all the tile puzzle related functionality into its own class 2015-12-23 21:34:00 +01:00
Strangerke
8e88d31025 LAB: Move processroom functions to LabEngine 2015-12-23 21:33:59 +01:00
Strangerke
199fa254f9 LAB: Rename CloseDataPtr pointers, some refactoring 2015-12-23 21:33:59 +01:00
Eugene Sandulenko
23bbd70aac LAB: Reduced variables scope 2015-12-23 21:33:58 +01:00
Eugene Sandulenko
c1fc1687fc LAB: Code naming standards 2015-12-23 21:33:58 +01:00