ScummVM API documentation
prisoners.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 MM1_VIEWS_MAPS_PRISONERS_H
23 #define MM1_VIEWS_MAPS_PRISONERS_H
24 
25 #include "mm/mm1/views/text_view.h"
26 #include "mm/mm1/data/character.h"
27 
28 namespace MM {
29 namespace MM1 {
30 namespace Views {
31 namespace Interactions {
32 
33 class Prisoner : public TextView {
34 private:
35  Common::String _line1;
36  byte _flag;
37  Alignment _freeAlignment;
38  Alignment _leaveAlignment;
39 protected:
40  virtual void flee() {}
41 public:
42  Prisoner(const Common::String &name, const Common::String &line1,
43  byte flag, Alignment freeAlignment, Alignment leaveAlignment);
44  virtual ~Prisoner() {}
45 
46  void draw() override;
47  bool msgKeypress(const KeypressMessage &msg) override;
48  void timeout() override;
49 };
50 
51 class ChildPrisoner : public Prisoner {
52 public:
53  ChildPrisoner();
54  virtual ~ChildPrisoner() {}
55 };
56 
57 class ManPrisoner : public Prisoner {
58 public:
59  ManPrisoner();
60  virtual ~ManPrisoner() {}
61 };
62 
63 class CloakedPrisoner : public Prisoner {
64 public:
66  virtual ~CloakedPrisoner() {
67  }
68 };
69 
70 class DemonPrisoner : public Prisoner {
71 public:
72  DemonPrisoner();
73  virtual ~DemonPrisoner() {
74  }
75 };
76 
77 class MutatedPrisoner : public Prisoner {
78 public:
80  virtual ~MutatedPrisoner() {
81  }
82 };
83 
84 class MaidenPrisoner : public Prisoner {
85 protected:
86  void flee() override;
87 public:
89  virtual ~MaidenPrisoner() {
90  }
91 };
92 
93 class VirginPrisoner : public TextView {
94 public:
96  virtual ~VirginPrisoner() {
97  }
98  void draw() override;
99  bool msgKeypress(const KeypressMessage &msg) override;
100  bool msgAction(const ActionMessage &msg) override;
101 };
102 
103 } // namespace Interactions
104 } // namespace Views
105 } // namespace MM1
106 } // namespace MM
107 
108 #endif
Definition: str.h:59
Definition: prisoners.h:33
Definition: messages.h:56
Definition: text_view.h:35
Definition: messages.h:49
Definition: detection.h:27