ScummVM API documentation
tt_concept_node.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 TITANIC_TT_CONCEPT_NODE_H
23 #define TITANIC_TT_CONCEPT_NODE_H
24 
25 #include "titanic/true_talk/tt_concept.h"
26 
27 namespace Titanic {
28 
30 public:
31  TTconcept *_concepts[6];
32  TTconcept *&_concept0P;
33  TTconcept *&_concept1P;
34  TTconcept *&_concept2P;
35  TTconcept *&_concept3P;
36  TTconcept *&_concept4P;
37  TTconcept *&_concept5P;
38  int _field18;
39  int _field1C;
40  TTconceptNode *_nextP;
41  int _status;
42 public:
43  TTconceptNode();
44  TTconceptNode(const TTconceptNode &src);
45  virtual ~TTconceptNode() {}
46 
50  void deleteSiblings();
51 
52  void set18(int val) { _field18 = val; }
53  int get18() const { return _field18; }
54 
58  bool isValid() const { return _status == SS_VALID; }
59 
60  TTconcept **setConcept(int conceptIndex, TTconcept *src);
61  int replaceConcept(int mode, int conceptIndex, TTconcept *conceptP);
62  int changeConcept(int mode, TTconcept **conceptPP, int conceptIndex);
63  bool createConcept(int mode, int conceptIndex, TTword *word);
64 
65  int concept1WordId() const {
66  return getWordId(_concept1P);
67  }
68  int concept5WordId() const {
69  return getWordId(_concept5P);
70  }
71 };
72 
73 } // End of namespace Titanic
74 
75 #endif /* TITANIC_TT_CONCEPT_NODE_H */
Definition: tt_concept.h:35
bool isValid() const
Definition: tt_concept_node.h:58
Definition: tt_concept_node.h:29
Definition: arm.h:30
Definition: tt_word.h:41