ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

puzzles.h

Go to the documentation of this file.
00001 /* ResidualVM - A 3D game interpreter
00002  *
00003  * ResidualVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the AUTHORS
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef PUZZLES_H_
00024 #define PUZZLES_H_
00025 
00026 #include "common/scummsys.h"
00027 
00028 #include "graphics/surface.h"
00029 
00030 namespace Myst3 {
00031 
00032 class Myst3Engine;
00033 
00034 class Puzzles {
00035 public:
00036     Puzzles(Myst3Engine *vm);
00037     virtual ~Puzzles();
00038 
00039     void run(uint16 id, uint16 arg0 = 0, uint16 arg1 = 0, uint16 arg2 = 0);
00040 
00041 private:
00042     Myst3Engine *_vm;
00043 
00044     typedef int32 SymbolCodeSolution[4];
00045 
00046     struct PegCombination {
00047         uint16 movie;
00048         bool pegs[5];
00049         uint16 pegFrames[3];
00050         uint16 expireFrame;
00051     };
00052 
00053     void leversBall(int16 var);
00054 
00055     void tesla(int16 movie, int16 var, int16 move);
00056 
00057     void resonanceRingControl();
00058     void resonanceRingsLaunchBall();
00059     void resonanceRingsLights();
00060 
00061     void pinball(int16 var);
00062     const PegCombination *_pinballFindCombination(uint16 var, const PegCombination pegs[], uint16 size);
00063 
00064     void weightDrag(uint16 var, uint16 movie);
00065 
00066     void journalSaavedro(int16 move);
00067     int16 _journalSaavedroLastPageLastChapterValue();
00068     uint16 _journalSaavedroGetNode(uint16 chapter);
00069     uint16 _journalSaavedroPageCount(uint16 chapter);
00070     bool _journalSaavedroHasChapter(uint16 chapter);
00071     uint16 _journalSaavedroNextChapter(uint16 chapter, bool forward);
00072 
00073     void journalAtrus(uint16 node, uint16 var);
00074     void mainMenu(uint16 action);
00075     void projectorLoadBitmap(uint16 bitmap);
00076     void projectorAddSpotItem(uint16 bitmap, uint16 x, uint16 y);
00077     void projectorUpdateCoordinates();
00078 
00079     void symbolCodesInit(uint16 var, uint16 posX, uint16 posY);
00080     void symbolCodesClick(int16 var);
00081     bool _symbolCodesCheckSolution(uint16 var, const SymbolCodeSolution &solution);
00082     int32 _symbolCodesFound();
00083 
00084     void railRoadSwitchs();
00085 
00086     void rollercoaster();
00087 
00088     void settingsSave();
00089 
00090     void updateSoundScriptTimer();
00091 
00092     void checkCanSave();
00093 
00094     void _drawForVarHelper(int16 var, int32 startValue, int32 endValue);
00095     void _drawXTicks(uint16 ticks);
00096 };
00097 
00098 } // End of namespace Myst3
00099 
00100 #endif // PUZZLES_H_


Generated on Sat Mar 23 2019 05:01:58 for ResidualVM by doxygen 1.7.1
curved edge   curved edge