ScummVM API documentation
scalpel_scene.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 SHERLOCK_SCALPEL_SCENE_H
23 #define SHERLOCK_SCALPEL_SCENE_H
24 
25 #include "common/scummsys.h"
26 #include "common/array.h"
27 #include "common/rect.h"
28 #include "common/serializer.h"
29 #include "sherlock/objects.h"
30 #include "sherlock/scene.h"
31 #include "sherlock/screen.h"
32 
33 namespace Sherlock {
34 
35 namespace Scalpel {
36 
37 extern const int FS_TRANS[8];
38 
39 enum { BLACKWOOD_CAPTURE = 2, BAKER_STREET = 4, DRAWING_ROOM = 12, STATION = 17, PUB_INTERIOR = 19,
40  LAWYER_OFFICE = 27, BAKER_ST_EXTERIOR = 39, RESCUE_ANNA = 52, MOOREHEAD_DEATH = 53, EXIT_GAME = 55,
41  BRUMWELL_SUICIDE = 70, OVERHEAD_MAP2 = 98, DARTS_GAME = 99, OVERHEAD_MAP = 100 };
42 
43 class ScalpelScene : public Scene {
44 private:
45  void doBgAnimCheckCursor();
46 protected:
56  bool loadScene(const Common::Path &filename) override;
57 
63  void checkBgShapes() override;
64 
68  void drawAllShapes() override;
69 
73  int closestZone(const Common::Point &pt) override;
74 public:
75  ScalpelScene(SherlockEngine *vm) : Scene(vm) {}
76 
77  ~ScalpelScene() override;
78 
82  void doBgAnim() override;
83 
92  int startCAnim(int cAnimNum, int playRate = 1) override;
93 
98  int findBgShape(const Common::Point &pt) override;
99 };
100 
101 } // End of namespace Scalpel
102 
103 } // End of namespace Sherlock
104 
105 #endif
Definition: animation.h:29
Definition: scalpel_scene.h:43
Definition: path.h:52
Definition: scene.h:145
bool loadScene(const Common::Path &filename) override
Definition: sherlock.h:76
Definition: rect.h:45
int findBgShape(const Common::Point &pt) override
int startCAnim(int cAnimNum, int playRate=1) override
int closestZone(const Common::Point &pt) override