Pol  Revision:cb584c9
wepntmpl.h
Go to the documentation of this file.
1 
8 #ifndef WEPNTMPL_H
9 #define WEPNTMPL_H
10 
11 #include <string>
12 
13 #include "../action.h"
14 #include "../dice.h"
15 #include "../equipdsc.h"
16 
17 namespace Pol
18 {
19 namespace Mobile
20 {
21 class Attribute;
22 }
23 namespace Items
24 {
26 {
27 public:
28  typedef EquipDesc base;
29  WeaponDesc( u32 objtype, Clib::ConfigElem& elem, const Plib::Package* pkg );
30  WeaponDesc(); // for dummy template
31  virtual ~WeaponDesc(){};
32  virtual void PopulateStruct( Bscript::BStruct* descriptor ) const POL_OVERRIDE;
33  virtual size_t estimatedSize() const POL_OVERRIDE;
34 
35  unsigned short get_random_damage() const;
36 
38 
39  unsigned short speed;
40  unsigned short delay;
41 
43 
45 
46  bool projectile;
47  unsigned short projectile_type;
48  unsigned short projectile_anim;
49  unsigned short projectile_sound;
53  unsigned short hit_sound;
54  unsigned short miss_sound;
55 
56  bool two_handed;
57 
58  unsigned short minrange;
59  unsigned short maxrange;
60 };
61 }
62 }
63 #endif
#define POL_OVERRIDE
Core::Dice damage_dice
Definition: wepntmpl.h:44
unsigned short speed
Definition: wepntmpl.h:39
Core::UACTION anim
Definition: wepntmpl.h:51
virtual ~WeaponDesc()
Definition: wepntmpl.h:31
unsigned short projectile_type
Definition: wepntmpl.h:47
unsigned short projectile_sound
Definition: wepntmpl.h:49
unsigned int u32
Definition: rawtypes.h:27
unsigned short miss_sound
Definition: wepntmpl.h:54
unsigned short delay
Definition: wepntmpl.h:40
unsigned short hit_sound
Definition: wepntmpl.h:53
Core::UACTION mounted_anim
Definition: wepntmpl.h:52
const Mobile::Attribute * pAttr
Definition: wepntmpl.h:37
unsigned short minrange
Definition: wepntmpl.h:58
unsigned short maxrange
Definition: wepntmpl.h:59
unsigned short projectile_anim
Definition: wepntmpl.h:48
Core::UACTION projectile_action
Definition: wepntmpl.h:50
Core::ScriptDef hit_script
Definition: wepntmpl.h:42
Definition: berror.cpp:12