Pol  Revision:cb584c9
boatcomp.h
Go to the documentation of this file.
1 
9 #ifndef BOATCOMP_H
10 #define BOATCOMP_H
11 
12 #include "../../bscript/bobject.h"
13 #include "../../clib/compilerspecifics.h"
14 #include "../../clib/rawtypes.h"
15 #include "../../clib/refptr.h"
16 #include "../item/item.h"
17 #include "../lockable.h"
18 #include "boat.h"
19 
20 namespace Pol
21 {
22 namespace Items
23 {
24 class ItemDesc;
25 } // namespace Items
26 namespace Multi
27 {
28 class UBoat;
29 } // namespace Multi
30 } // namespace Pol
31 
32 namespace Pol
33 {
34 namespace Bscript
35 {
36 class BObjectImp;
37 }
38 namespace Multi
39 {
40 class UPlank : public Core::ULockable
41 {
43 
44 public:
45  void setboat( UBoat* boat );
46  virtual ~UPlank(){};
47  virtual size_t estimatedSize() const POL_OVERRIDE;
48 
49 protected:
50  explicit UPlank( const Items::ItemDesc& descriptor );
51  friend Items::Item* Items::Item::create( const Items::ItemDesc& descriptor, u32 serial );
52 
53  virtual void destroy() POL_OVERRIDE;
54  virtual Bscript::BObjectImp* get_script_member( const char* membername ) const POL_OVERRIDE;
55  virtual Bscript::BObjectImp* get_script_member_id( const int id ) const POL_OVERRIDE;
56 
57 private:
59 };
60 }
61 }
62 #endif
static Item * create(u32 objtype, u32 serial=0)
Definition: itemcr.cpp:53
#define POL_OVERRIDE
unsigned int u32
Definition: rawtypes.h:27
Definition: refptr.h:65
virtual ~UPlank()
Definition: boatcomp.h:46
ref_ptr< UBoat > boat_
id test
Definition: boatcomp.h:58
Definition: berror.cpp:12
Core::ULockable base
Definition: boatcomp.h:42