ScummVM API documentation
iris.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef GRIM_IRIS_H
23 #define GRIM_IRIS_H
24 
25 namespace Grim {
26 
27 class SaveGame;
28 
29 class Iris {
30 public:
31  enum Direction {
32  Open = 0,
33  Close = 1
34  };
35 
36  Iris();
37  ~Iris();
38 
39  void play(Direction dir, int x, int y, int length);
40  void draw();
41  void update(int frameTime);
42 
43  void saveState(SaveGame *state) const;
44  void restoreState(SaveGame *state);
45 
46 private:
47  bool _playing;
48  Direction _direction;
49  int _x1;
50  int _y1;
51  int _x2;
52  int _y2;
53  int _targetX;
54  int _targetY;
55  int _length;
56  int _currTime;
57 };
58 
59 } // end of namespace Grim
60 
61 #endif
Definition: savegame.h:33
Definition: actor.h:33
Definition: iris.h:29