mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
75 lines
2.2 KiB
C++
75 lines
2.2 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef ASYLUM_TIMEMACHINE_H
|
|
#define ASYLUM_TIMEMACHINE_H
|
|
|
|
#include "asylum/puzzles/puzzle.h"
|
|
|
|
namespace Asylum {
|
|
|
|
class AsylumEngine;
|
|
|
|
class PuzzleTimeMachine : public Puzzle {
|
|
public:
|
|
PuzzleTimeMachine(AsylumEngine *engine);
|
|
~PuzzleTimeMachine();
|
|
|
|
void reset();
|
|
|
|
private:
|
|
bool _leftButtonClicked;
|
|
uint32 _counter;
|
|
uint32 _counter2;
|
|
uint32 _currentFrameIndex;
|
|
int32 _frameIndexes[6];
|
|
uint32 _frameCounts[6];
|
|
int32 _frameIncrements[6];
|
|
int8 _state[5];
|
|
Common::Point _point;
|
|
|
|
bool _data_4572BC;
|
|
bool _data_4572CC;
|
|
|
|
uint32 _data_45AAA8;
|
|
uint32 _data_45AAAC;
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Event Handling
|
|
//////////////////////////////////////////////////////////////////////////
|
|
bool init(const AsylumEvent &evt);
|
|
bool update(const AsylumEvent &evt);
|
|
bool key(const AsylumEvent &evt) { return keyExit(evt); }
|
|
bool mouseLeftDown(const AsylumEvent &evt);
|
|
bool mouseLeftUp(const AsylumEvent &evt);
|
|
bool mouseRightDown(const AsylumEvent &evt);
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Helpers
|
|
//////////////////////////////////////////////////////////////////////////
|
|
void updateCursor();
|
|
};
|
|
|
|
} // End of namespace Asylum
|
|
|
|
#endif // ASYLUM_TIMEMACHINE_H
|