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_ENH_INTERACTIONS_PRISONERS_H
23 #define MM1_VIEWS_ENH_INTERACTIONS_PRISONERS_H
24 
25 #include "mm/mm1/views_enh/interactions/interaction.h"
26 #include "mm/mm1/data/character.h"
27 
28 namespace MM {
29 namespace MM1 {
30 namespace ViewsEnh {
31 namespace Interactions {
32 
33 class Prisoner : public Interaction {
34 private:
35  Common::String _line;
36  byte _flag;
37  Alignment _freeAlignment;
38  Alignment _leaveAlignment;
39 protected:
40  virtual void flee() {}
41 
45  bool canSwitchChar() override {
46  return false;
47  }
48 
49 public:
50  Prisoner(const Common::String &name, int portrait, const Common::String &line1,
51  byte flag, Alignment freeAlignment, Alignment leaveAlignment);
52  virtual ~Prisoner() {}
53 
54  bool msgFocus(const FocusMessage &msg) override;
55  bool msgKeypress(const KeypressMessage &msg) override;
56  void timeout() override;
57 };
58 
59 class ChildPrisoner : public Prisoner {
60 public:
61  ChildPrisoner();
62  virtual ~ChildPrisoner() {}
63 };
64 
65 class ManPrisoner : public Prisoner {
66 public:
67  ManPrisoner();
68  virtual ~ManPrisoner() {}
69 };
70 
71 class CloakedPrisoner : public Prisoner {
72 public:
74  virtual ~CloakedPrisoner() {
75  }
76 };
77 
78 class DemonPrisoner : public Prisoner {
79 public:
80  DemonPrisoner();
81  virtual ~DemonPrisoner() {
82  }
83 };
84 
85 class MutatedPrisoner : public Prisoner {
86 public:
88  virtual ~MutatedPrisoner() {
89  }
90 };
91 
92 class MaidenPrisoner : public Prisoner {
93 protected:
94  void flee() override;
95 public:
97  virtual ~MaidenPrisoner() {
98  }
99 };
100 
101 class VirginPrisoner : public Interaction {
102 public:
103  VirginPrisoner();
104  virtual ~VirginPrisoner() {
105  }
106  bool msgKeypress(const KeypressMessage &msg) override;
107  bool msgAction(const ActionMessage &msg) override;
108 };
109 
110 } // namespace Interactions
111 } // namespace ViewsEnh
112 } // namespace MM1
113 } // namespace MM
114 
115 #endif
Definition: str.h:59
bool msgAction(const ActionMessage &msg) override
bool canSwitchChar() override
Definition: prisoners.h:45
Definition: messages.h:56
Definition: messages.h:49
Definition: detection.h:27
bool msgKeypress(const KeypressMessage &msg) override
Definition: messages.h:41