OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
projectilestate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_PROJECTILESTATE_H
2 #define OPENMW_ESM_PROJECTILESTATE_H
3 
4 #include <string>
5 
6 #include <osg/Quat>
7 #include <osg/Vec3f>
8 
9 #include "effectlist.hpp"
10 
11 #include "util.hpp"
12 
13 namespace ESM
14 {
15 
16  // format 0, savegames only
17 
19  {
20  std::string mId;
21 
24 
25  int mActorId;
26 
27  void load (ESMReader &esm);
28  void save (ESMWriter &esm) const;
29  };
30 
32  {
33  std::string mSpellId;
34  std::string mSourceName;
36  float mSpeed;
37  bool mStack;
38  std::string mSound;
39 
40  void load (ESMReader &esm);
41  void save (ESMWriter &esm) const;
42  };
43 
45  {
46  std::string mBowId;
49 
50  void load (ESMReader &esm);
51  void save (ESMWriter &esm) const;
52  };
53 
54 }
55 
56 #endif
float mSpeed
Definition: projectilestate.hpp:36
void load(ESMReader &esm)
Definition: projectilestate.cpp:17
void save(ESMWriter &esm) const
Definition: projectilestate.cpp:25
void save(ESMWriter &esm) const
Definition: projectilestate.cpp:9
std::string mSourceName
Definition: projectilestate.hpp:34
void load(ESMReader &esm)
Definition: projectilestate.cpp:58
Definition: esmreader.hpp:21
Definition: util.hpp:12
Definition: projectilestate.hpp:31
Definition: projectilestate.hpp:18
Definition: esmwriter.hpp:17
int mActorId
Definition: projectilestate.hpp:25
std::string mSpellId
Definition: projectilestate.hpp:33
Vector3 mVelocity
Definition: projectilestate.hpp:47
Definition: util.hpp:32
Vector3 mPosition
Definition: projectilestate.hpp:22
void save(ESMWriter &esm) const
Definition: projectilestate.cpp:49
void load(ESMReader &esm)
Definition: projectilestate.cpp:37
Quaternion mOrientation
Definition: projectilestate.hpp:23
float mAttackStrength
Definition: projectilestate.hpp:48
std::string mId
Definition: projectilestate.hpp:20
std::string mSound
Definition: projectilestate.hpp:38
EffectList, ENAM subrecord.
Definition: effectlist.hpp:33
Definition: projectilestate.hpp:44
std::string mBowId
Definition: projectilestate.hpp:46
bool mStack
Definition: projectilestate.hpp:37
ESM::EffectList mEffects
Definition: projectilestate.hpp:35