ScummVM API documentation
suspects_database.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 BLADERUNNER_SUSPECTS_DATABASE_H
23#define BLADERUNNER_SUSPECTS_DATABASE_H
24#include "common/array.h"
25
26namespace BladeRunner {
27
28class BladeRunnerEngine;
29class TextResource;
30
32 static const int kMOClueCount = 10;
33 static const int kWhereaboutsClueCount = 10;
34 static const int kReplicantClueCount = 20;
35 static const int kNonReplicantClueCount = 20;
36 static const int kOtherClueCount = 20;
37 static const int kIdentityClueCount = 10;
38 static const int kPhotoClueCount = 6;
39
40 struct Photo {
41 int clueId;
42 int shapeId;
43 int notUsed;
44 };
45
47
48 int _actorId;
49 int _sex;
50
51 int _moClues[kMOClueCount];
52 int _whereaboutsClues[kWhereaboutsClueCount];
53 int _replicantClues[kReplicantClueCount];
54 int _nonReplicantClues[kNonReplicantClueCount];
55 int _otherClues[kOtherClueCount];
56 int _identityClues[kIdentityClueCount];
57 Photo _photoClues[kPhotoClueCount];
58
59 int _moClueCount;
60 int _whereaboutsClueCount;
61 int _replicantClueCount;
62 int _nonReplicantClueCount;
63 int _otherClueCount;
64 int _identityClueCount;
65 int _photoClueCount;
66
67public:
70
71 void setActor(int actorId);
72 void setSex(int sex);
73
74 bool addMOClue(int clueId);
75 bool addWhereaboutsClue(int clueId);
76 bool addReplicantClue(int clueId);
77 bool addNonReplicantClue(int clueId);
78 bool addOtherClue(int clueId);
79 bool addIdentityClue(int clueId);
80 bool addPhotoClue(int shapeId, int clueId);
81
82 const char *getName() const;
83 int getSex() const;
84
85 bool hasMOClue(int clueId) const;
86 bool hasWhereaboutsClue(int clueId) const;
87 bool hasReplicantClue(int clueId) const;
88 bool hasNonReplicantClue(int clueId) const;
89 bool hasOtherClue(int clueId) const;
90 bool hasIdentityClue(int clueId) const;
91 bool hasClue(int clueId) const;
92
93 int getPhotoCount() const;
94 int getPhotoClueId(int photoId) const;
95 int getPhotoShapeId(int photoId) const;
96 int getPhotoNotUsed(int photoId) const;
97
98 void reset();
99};
100
103
105
106public:
107 SuspectsDatabase(BladeRunnerEngine *_vm, int size);
109
110 SuspectDatabaseEntry *get(int suspectId);
111};
112
113} // End of namespace BladeRunner
114
115#endif
Definition: bladerunner.h:113
Definition: suspects_database.h:31
Definition: suspects_database.h:101
Definition: array.h:52