ScummVM API documentation
emihead.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 GRIM_EMIHEAD_H
23 #define GRIM_EMIHEAD_H
24 
25 #include "math/vector3d.h"
26 #include "math/quat.h"
27 
28 #include "engines/grim/costume/head.h"
29 
30 namespace Grim {
31 
32 class EMICostume;
33 
34 class EMIHead : public BaseHead {
35 public:
36  EMIHead(EMICostume *costume);
37 
38  void setJoint(const char *joint, const Math::Vector3d &offset);
39  void setLimits(float yawRange, float maxPitch, float minPitch);
40  void lookAt(bool entering, const Math::Vector3d &point, float rate, const Math::Matrix4 &matrix) override;
41  void loadJoints(ModelNode *nodes) override {}
42  void saveState(SaveGame *state) const override;
43  void restoreState(SaveGame *state) override;
44 
45 private:
46  EMICostume *_cost;
47  Common::String _jointName;
48  Math::Vector3d _offset;
49  Math::Quaternion _headRot;
50  float _yawRange;
51  float _maxPitch;
52  float _minPitch;
53 };
54 
55 } // end of namespace Grim
56 
57 #endif
Definition: str.h:59
Definition: emihead.h:34
Definition: head.h:32
Definition: savegame.h:33
Definition: actor.h:33
Definition: costumeemi.h:40
Definition: model.h:158