ScummVM API documentation
walkboxnode.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 TWP_WALKBOXNODE_H
23 #define TWP_WALKBOXNODE_H
24 
25 #include "twp/scenegraph.h"
26 
27 namespace Twp {
28 
29 enum class WalkboxMode {
30  None,
31  Merged,
32  All
33 };
34 
35 class WalkboxNode : public Node {
36 public:
37  WalkboxNode();
38 
39  void setMode(WalkboxMode mode) { _mode = mode; }
40  WalkboxMode getMode() const { return _mode; }
41 
42 private:
43  virtual void drawCore(const Math::Matrix4 &trsf) override;
44 
45 private:
46  WalkboxMode _mode;
47 };
48 
49 enum class PathMode {
50  None,
51  GraphMode,
52  All
53 };
54 
55 class PathNode : public Node {
56 public:
57  PathNode();
58 
59  void setMode(PathMode mode) { _mode = mode; }
60  PathMode getMode() const { return _mode; }
61 
62 private:
63  Math::Vector2d fixPos(const Math::Vector2d &pos);
64  virtual void drawCore(const Math::Matrix4 &trsf) override;
65 
66 private:
67  PathMode _mode = PathMode::None;
68 };
69 
70 class LightingNode : public Node {
71 public:
72  LightingNode();
73 
74 private:
75  virtual void drawCore(const Math::Matrix4 &trsf) override;
76 };
77 
78 } // namespace Twp
79 
80 #endif
Definition: walkboxnode.h:70
Definition: walkboxnode.h:35
Definition: scenegraph.h:41
Definition: walkboxnode.h:55
Definition: achievements_tables.h:27