00001
00002
00003
00004
00005 #ifndef _NTREE_M_H_
00006 #define _NTREE_M_H_
00007
00008 #include <omnetpp.h>
00009
00010
00011 #define MSGC_VERSION 0x0401
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015
00016
00017 #include <CommonMessages_m.h>
00018 #include <Vector2D.h>
00019
00020 static const int NTREEPOSITION_L = 128;
00021 static const int NTREESIZE_L = 64;
00022 static const int NTREEQUADRANT_L = 2;
00023 static const int NTREECHILDCOUNT_L = 16;
00024
00025 #define NTREEJOINCALL_L(msg) (NTREEPOSITION_L + BASECALL_L(msg))
00026 #define NTREEJOINRESPONSE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + msg->getMembersArraySize() * NODEHANDLE_L + BASERESPONSE_L(msg))
00027 #define NTREEDIVIDECALL_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NTREEQUADRANT_L + BASECALL_L(msg))
00028 #define NTREEDIVIDERESPONSE_L(msg) (BASERESPONSE_L(msg))
00029 #define NTREEPINGCALL_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASECALL_L(msg))
00030 #define NTREENODEPINGCALL_L(msg) (NTREEPINGCALL_L(msg) + 4*NODEHANDLE_L + NTREEQUADRANT_L)
00031 #define NTREEPINGRESPONSE_L(msg) (BASERESPONSE_L(msg))
00032 #define NTREENODEPINGRESPONSE_L(msg) (NTREEPINGRESPONSE_L(msg) + msg->getMembersArraySize() * NODEHANDLE_L + NTREECHILDCOUNT_L)
00033 #define NTREEDELETE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + 4*NODEHANDLE_L + BASEOVERLAY_L(msg))
00034 #define NTREECOLLAPSE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
00035 #define NTREELEAVE_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
00036 #define NTREEMOVE_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
00037 #define NTREEADD_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
00038 #define NTREEREPLACE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + (msg->getChildrenArraySize() +1)*NODEHANDLE_L + TRANSPORTADDRESS_L + 1 + BASEOVERLAY_L(msg))
00039 #define NTREETAKEOVER_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
00040
00041
00042
00043
00053 class NTreeJoinCall : public ::BaseCallMessage
00054 {
00055 protected:
00056 ::Vector2D position_var;
00057
00058
00059 bool operator==(const NTreeJoinCall&);
00060
00061 public:
00062 NTreeJoinCall(const char *name=NULL, int kind=0);
00063 NTreeJoinCall(const NTreeJoinCall& other);
00064 virtual ~NTreeJoinCall();
00065 NTreeJoinCall& operator=(const NTreeJoinCall& other);
00066 virtual NTreeJoinCall *dup() const {return new NTreeJoinCall(*this);}
00067 virtual void parsimPack(cCommBuffer *b);
00068 virtual void parsimUnpack(cCommBuffer *b);
00069
00070
00071 virtual Vector2D& getPosition();
00072 virtual const Vector2D& getPosition() const {return const_cast<NTreeJoinCall*>(this)->getPosition();}
00073 virtual void setPosition(const Vector2D& position_var);
00074 };
00075
00076 inline void doPacking(cCommBuffer *b, NTreeJoinCall& obj) {obj.parsimPack(b);}
00077 inline void doUnpacking(cCommBuffer *b, NTreeJoinCall& obj) {obj.parsimUnpack(b);}
00078
00090 class NTreeJoinResponse : public ::BaseResponseMessage
00091 {
00092 protected:
00093 ::Vector2D origin_var;
00094 double size_var;
00095 ::NodeHandle *members_var;
00096 unsigned int members_arraysize;
00097
00098
00099 bool operator==(const NTreeJoinResponse&);
00100
00101 public:
00102 NTreeJoinResponse(const char *name=NULL, int kind=0);
00103 NTreeJoinResponse(const NTreeJoinResponse& other);
00104 virtual ~NTreeJoinResponse();
00105 NTreeJoinResponse& operator=(const NTreeJoinResponse& other);
00106 virtual NTreeJoinResponse *dup() const {return new NTreeJoinResponse(*this);}
00107 virtual void parsimPack(cCommBuffer *b);
00108 virtual void parsimUnpack(cCommBuffer *b);
00109
00110
00111 virtual Vector2D& getOrigin();
00112 virtual const Vector2D& getOrigin() const {return const_cast<NTreeJoinResponse*>(this)->getOrigin();}
00113 virtual void setOrigin(const Vector2D& origin_var);
00114 virtual double getSize() const;
00115 virtual void setSize(double size_var);
00116 virtual void setMembersArraySize(unsigned int size);
00117 virtual unsigned int getMembersArraySize() const;
00118 virtual NodeHandle& getMembers(unsigned int k);
00119 virtual const NodeHandle& getMembers(unsigned int k) const {return const_cast<NTreeJoinResponse*>(this)->getMembers(k);}
00120 virtual void setMembers(unsigned int k, const NodeHandle& members_var);
00121 };
00122
00123 inline void doPacking(cCommBuffer *b, NTreeJoinResponse& obj) {obj.parsimPack(b);}
00124 inline void doUnpacking(cCommBuffer *b, NTreeJoinResponse& obj) {obj.parsimUnpack(b);}
00125
00137 class NTreeDivideCall : public ::BaseCallMessage
00138 {
00139 protected:
00140 ::Vector2D origin_var;
00141 double size_var;
00142 int quadrant_var;
00143
00144
00145 bool operator==(const NTreeDivideCall&);
00146
00147 public:
00148 NTreeDivideCall(const char *name=NULL, int kind=0);
00149 NTreeDivideCall(const NTreeDivideCall& other);
00150 virtual ~NTreeDivideCall();
00151 NTreeDivideCall& operator=(const NTreeDivideCall& other);
00152 virtual NTreeDivideCall *dup() const {return new NTreeDivideCall(*this);}
00153 virtual void parsimPack(cCommBuffer *b);
00154 virtual void parsimUnpack(cCommBuffer *b);
00155
00156
00157 virtual Vector2D& getOrigin();
00158 virtual const Vector2D& getOrigin() const {return const_cast<NTreeDivideCall*>(this)->getOrigin();}
00159 virtual void setOrigin(const Vector2D& origin_var);
00160 virtual double getSize() const;
00161 virtual void setSize(double size_var);
00162 virtual int getQuadrant() const;
00163 virtual void setQuadrant(int quadrant_var);
00164 };
00165
00166 inline void doPacking(cCommBuffer *b, NTreeDivideCall& obj) {obj.parsimPack(b);}
00167 inline void doUnpacking(cCommBuffer *b, NTreeDivideCall& obj) {obj.parsimUnpack(b);}
00168
00178 class NTreeDivideResponse : public ::BaseResponseMessage
00179 {
00180 protected:
00181 int quadrant_var;
00182
00183
00184 bool operator==(const NTreeDivideResponse&);
00185
00186 public:
00187 NTreeDivideResponse(const char *name=NULL, int kind=0);
00188 NTreeDivideResponse(const NTreeDivideResponse& other);
00189 virtual ~NTreeDivideResponse();
00190 NTreeDivideResponse& operator=(const NTreeDivideResponse& other);
00191 virtual NTreeDivideResponse *dup() const {return new NTreeDivideResponse(*this);}
00192 virtual void parsimPack(cCommBuffer *b);
00193 virtual void parsimUnpack(cCommBuffer *b);
00194
00195
00196 virtual int getQuadrant() const;
00197 virtual void setQuadrant(int quadrant_var);
00198 };
00199
00200 inline void doPacking(cCommBuffer *b, NTreeDivideResponse& obj) {obj.parsimPack(b);}
00201 inline void doUnpacking(cCommBuffer *b, NTreeDivideResponse& obj) {obj.parsimUnpack(b);}
00202
00214 class NTreePingCall : public ::BaseCallMessage
00215 {
00216 protected:
00217 ::Vector2D origin_var;
00218 double size_var;
00219 ::NodeHandle parent_var;
00220
00221
00222 bool operator==(const NTreePingCall&);
00223
00224 public:
00225 NTreePingCall(const char *name=NULL, int kind=0);
00226 NTreePingCall(const NTreePingCall& other);
00227 virtual ~NTreePingCall();
00228 NTreePingCall& operator=(const NTreePingCall& other);
00229 virtual NTreePingCall *dup() const {return new NTreePingCall(*this);}
00230 virtual void parsimPack(cCommBuffer *b);
00231 virtual void parsimUnpack(cCommBuffer *b);
00232
00233
00234 virtual Vector2D& getOrigin();
00235 virtual const Vector2D& getOrigin() const {return const_cast<NTreePingCall*>(this)->getOrigin();}
00236 virtual void setOrigin(const Vector2D& origin_var);
00237 virtual double getSize() const;
00238 virtual void setSize(double size_var);
00239 virtual NodeHandle& getParent();
00240 virtual const NodeHandle& getParent() const {return const_cast<NTreePingCall*>(this)->getParent();}
00241 virtual void setParent(const NodeHandle& parent_var);
00242 };
00243
00244 inline void doPacking(cCommBuffer *b, NTreePingCall& obj) {obj.parsimPack(b);}
00245 inline void doUnpacking(cCommBuffer *b, NTreePingCall& obj) {obj.parsimUnpack(b);}
00246
00257 class NTreeNodePingCall : public ::NTreePingCall
00258 {
00259 protected:
00260 ::NodeHandle siblings_var[4];
00261 int quadrant_var;
00262
00263
00264 bool operator==(const NTreeNodePingCall&);
00265
00266 public:
00267 NTreeNodePingCall(const char *name=NULL, int kind=0);
00268 NTreeNodePingCall(const NTreeNodePingCall& other);
00269 virtual ~NTreeNodePingCall();
00270 NTreeNodePingCall& operator=(const NTreeNodePingCall& other);
00271 virtual NTreeNodePingCall *dup() const {return new NTreeNodePingCall(*this);}
00272 virtual void parsimPack(cCommBuffer *b);
00273 virtual void parsimUnpack(cCommBuffer *b);
00274
00275
00276 virtual unsigned int getSiblingsArraySize() const;
00277 virtual NodeHandle& getSiblings(unsigned int k);
00278 virtual const NodeHandle& getSiblings(unsigned int k) const {return const_cast<NTreeNodePingCall*>(this)->getSiblings(k);}
00279 virtual void setSiblings(unsigned int k, const NodeHandle& siblings_var);
00280 virtual int getQuadrant() const;
00281 virtual void setQuadrant(int quadrant_var);
00282 };
00283
00284 inline void doPacking(cCommBuffer *b, NTreeNodePingCall& obj) {obj.parsimPack(b);}
00285 inline void doUnpacking(cCommBuffer *b, NTreeNodePingCall& obj) {obj.parsimUnpack(b);}
00286
00295 class NTreePingResponse : public ::BaseResponseMessage
00296 {
00297 protected:
00298
00299
00300 bool operator==(const NTreePingResponse&);
00301
00302 public:
00303 NTreePingResponse(const char *name=NULL, int kind=0);
00304 NTreePingResponse(const NTreePingResponse& other);
00305 virtual ~NTreePingResponse();
00306 NTreePingResponse& operator=(const NTreePingResponse& other);
00307 virtual NTreePingResponse *dup() const {return new NTreePingResponse(*this);}
00308 virtual void parsimPack(cCommBuffer *b);
00309 virtual void parsimUnpack(cCommBuffer *b);
00310
00311
00312 };
00313
00314 inline void doPacking(cCommBuffer *b, NTreePingResponse& obj) {obj.parsimPack(b);}
00315 inline void doUnpacking(cCommBuffer *b, NTreePingResponse& obj) {obj.parsimUnpack(b);}
00316
00327 class NTreeNodePingResponse : public ::NTreePingResponse
00328 {
00329 protected:
00330 ::NodeHandle *members_var;
00331 unsigned int members_arraysize;
00332 int aggChildCount_var;
00333
00334
00335 bool operator==(const NTreeNodePingResponse&);
00336
00337 public:
00338 NTreeNodePingResponse(const char *name=NULL, int kind=0);
00339 NTreeNodePingResponse(const NTreeNodePingResponse& other);
00340 virtual ~NTreeNodePingResponse();
00341 NTreeNodePingResponse& operator=(const NTreeNodePingResponse& other);
00342 virtual NTreeNodePingResponse *dup() const {return new NTreeNodePingResponse(*this);}
00343 virtual void parsimPack(cCommBuffer *b);
00344 virtual void parsimUnpack(cCommBuffer *b);
00345
00346
00347 virtual void setMembersArraySize(unsigned int size);
00348 virtual unsigned int getMembersArraySize() const;
00349 virtual NodeHandle& getMembers(unsigned int k);
00350 virtual const NodeHandle& getMembers(unsigned int k) const {return const_cast<NTreeNodePingResponse*>(this)->getMembers(k);}
00351 virtual void setMembers(unsigned int k, const NodeHandle& members_var);
00352 virtual int getAggChildCount() const;
00353 virtual void setAggChildCount(int aggChildCount_var);
00354 };
00355
00356 inline void doPacking(cCommBuffer *b, NTreeNodePingResponse& obj) {obj.parsimPack(b);}
00357 inline void doUnpacking(cCommBuffer *b, NTreeNodePingResponse& obj) {obj.parsimUnpack(b);}
00358
00370 class NTreeGroupDeleteMessage : public ::BaseOverlayMessage
00371 {
00372 protected:
00373 ::Vector2D origin_var;
00374 double size_var;
00375 ::NodeHandle newChild_var[4];
00376
00377
00378 bool operator==(const NTreeGroupDeleteMessage&);
00379
00380 public:
00381 NTreeGroupDeleteMessage(const char *name=NULL, int kind=0);
00382 NTreeGroupDeleteMessage(const NTreeGroupDeleteMessage& other);
00383 virtual ~NTreeGroupDeleteMessage();
00384 NTreeGroupDeleteMessage& operator=(const NTreeGroupDeleteMessage& other);
00385 virtual NTreeGroupDeleteMessage *dup() const {return new NTreeGroupDeleteMessage(*this);}
00386 virtual void parsimPack(cCommBuffer *b);
00387 virtual void parsimUnpack(cCommBuffer *b);
00388
00389
00390 virtual Vector2D& getOrigin();
00391 virtual const Vector2D& getOrigin() const {return const_cast<NTreeGroupDeleteMessage*>(this)->getOrigin();}
00392 virtual void setOrigin(const Vector2D& origin_var);
00393 virtual double getSize() const;
00394 virtual void setSize(double size_var);
00395 virtual unsigned int getNewChildArraySize() const;
00396 virtual NodeHandle& getNewChild(unsigned int k);
00397 virtual const NodeHandle& getNewChild(unsigned int k) const {return const_cast<NTreeGroupDeleteMessage*>(this)->getNewChild(k);}
00398 virtual void setNewChild(unsigned int k, const NodeHandle& newChild_var);
00399 };
00400
00401 inline void doPacking(cCommBuffer *b, NTreeGroupDeleteMessage& obj) {obj.parsimPack(b);}
00402 inline void doUnpacking(cCommBuffer *b, NTreeGroupDeleteMessage& obj) {obj.parsimUnpack(b);}
00403
00415 class NTreeCollapseMessage : public ::BaseOverlayMessage
00416 {
00417 protected:
00418 ::Vector2D origin_var;
00419 double size_var;
00420 ::NodeHandle player_var;
00421
00422
00423 bool operator==(const NTreeCollapseMessage&);
00424
00425 public:
00426 NTreeCollapseMessage(const char *name=NULL, int kind=0);
00427 NTreeCollapseMessage(const NTreeCollapseMessage& other);
00428 virtual ~NTreeCollapseMessage();
00429 NTreeCollapseMessage& operator=(const NTreeCollapseMessage& other);
00430 virtual NTreeCollapseMessage *dup() const {return new NTreeCollapseMessage(*this);}
00431 virtual void parsimPack(cCommBuffer *b);
00432 virtual void parsimUnpack(cCommBuffer *b);
00433
00434
00435 virtual Vector2D& getOrigin();
00436 virtual const Vector2D& getOrigin() const {return const_cast<NTreeCollapseMessage*>(this)->getOrigin();}
00437 virtual void setOrigin(const Vector2D& origin_var);
00438 virtual double getSize() const;
00439 virtual void setSize(double size_var);
00440 virtual NodeHandle& getPlayer();
00441 virtual const NodeHandle& getPlayer() const {return const_cast<NTreeCollapseMessage*>(this)->getPlayer();}
00442 virtual void setPlayer(const NodeHandle& player_var);
00443 };
00444
00445 inline void doPacking(cCommBuffer *b, NTreeCollapseMessage& obj) {obj.parsimPack(b);}
00446 inline void doUnpacking(cCommBuffer *b, NTreeCollapseMessage& obj) {obj.parsimUnpack(b);}
00447
00458 class NTreeLeaveMessage : public ::BaseOverlayMessage
00459 {
00460 protected:
00461 ::NodeHandle player_var;
00462 ::Vector2D position_var;
00463
00464
00465 bool operator==(const NTreeLeaveMessage&);
00466
00467 public:
00468 NTreeLeaveMessage(const char *name=NULL, int kind=0);
00469 NTreeLeaveMessage(const NTreeLeaveMessage& other);
00470 virtual ~NTreeLeaveMessage();
00471 NTreeLeaveMessage& operator=(const NTreeLeaveMessage& other);
00472 virtual NTreeLeaveMessage *dup() const {return new NTreeLeaveMessage(*this);}
00473 virtual void parsimPack(cCommBuffer *b);
00474 virtual void parsimUnpack(cCommBuffer *b);
00475
00476
00477 virtual NodeHandle& getPlayer();
00478 virtual const NodeHandle& getPlayer() const {return const_cast<NTreeLeaveMessage*>(this)->getPlayer();}
00479 virtual void setPlayer(const NodeHandle& player_var);
00480 virtual Vector2D& getPosition();
00481 virtual const Vector2D& getPosition() const {return const_cast<NTreeLeaveMessage*>(this)->getPosition();}
00482 virtual void setPosition(const Vector2D& position_var);
00483 };
00484
00485 inline void doPacking(cCommBuffer *b, NTreeLeaveMessage& obj) {obj.parsimPack(b);}
00486 inline void doUnpacking(cCommBuffer *b, NTreeLeaveMessage& obj) {obj.parsimUnpack(b);}
00487
00498 class NTreeMoveMessage : public ::BaseOverlayMessage
00499 {
00500 protected:
00501 ::NodeHandle player_var;
00502 ::Vector2D position_var;
00503
00504
00505 bool operator==(const NTreeMoveMessage&);
00506
00507 public:
00508 NTreeMoveMessage(const char *name=NULL, int kind=0);
00509 NTreeMoveMessage(const NTreeMoveMessage& other);
00510 virtual ~NTreeMoveMessage();
00511 NTreeMoveMessage& operator=(const NTreeMoveMessage& other);
00512 virtual NTreeMoveMessage *dup() const {return new NTreeMoveMessage(*this);}
00513 virtual void parsimPack(cCommBuffer *b);
00514 virtual void parsimUnpack(cCommBuffer *b);
00515
00516
00517 virtual NodeHandle& getPlayer();
00518 virtual const NodeHandle& getPlayer() const {return const_cast<NTreeMoveMessage*>(this)->getPlayer();}
00519 virtual void setPlayer(const NodeHandle& player_var);
00520 virtual Vector2D& getPosition();
00521 virtual const Vector2D& getPosition() const {return const_cast<NTreeMoveMessage*>(this)->getPosition();}
00522 virtual void setPosition(const Vector2D& position_var);
00523 };
00524
00525 inline void doPacking(cCommBuffer *b, NTreeMoveMessage& obj) {obj.parsimPack(b);}
00526 inline void doUnpacking(cCommBuffer *b, NTreeMoveMessage& obj) {obj.parsimUnpack(b);}
00527
00538 class NTreeGroupAddMessage : public ::BaseOverlayMessage
00539 {
00540 protected:
00541 ::NodeHandle player_var;
00542 ::Vector2D origin_var;
00543
00544
00545 bool operator==(const NTreeGroupAddMessage&);
00546
00547 public:
00548 NTreeGroupAddMessage(const char *name=NULL, int kind=0);
00549 NTreeGroupAddMessage(const NTreeGroupAddMessage& other);
00550 virtual ~NTreeGroupAddMessage();
00551 NTreeGroupAddMessage& operator=(const NTreeGroupAddMessage& other);
00552 virtual NTreeGroupAddMessage *dup() const {return new NTreeGroupAddMessage(*this);}
00553 virtual void parsimPack(cCommBuffer *b);
00554 virtual void parsimUnpack(cCommBuffer *b);
00555
00556
00557 virtual NodeHandle& getPlayer();
00558 virtual const NodeHandle& getPlayer() const {return const_cast<NTreeGroupAddMessage*>(this)->getPlayer();}
00559 virtual void setPlayer(const NodeHandle& player_var);
00560 virtual Vector2D& getOrigin();
00561 virtual const Vector2D& getOrigin() const {return const_cast<NTreeGroupAddMessage*>(this)->getOrigin();}
00562 virtual void setOrigin(const Vector2D& origin_var);
00563 };
00564
00565 inline void doPacking(cCommBuffer *b, NTreeGroupAddMessage& obj) {obj.parsimPack(b);}
00566 inline void doUnpacking(cCommBuffer *b, NTreeGroupAddMessage& obj) {obj.parsimUnpack(b);}
00567
00582 class NTreeReplaceNodeMessage : public ::BaseOverlayMessage
00583 {
00584 protected:
00585 ::Vector2D origin_var;
00586 double size_var;
00587 ::NodeHandle parent_var;
00588 ::NodeHandle *children_var;
00589 unsigned int children_arraysize;
00590 ::TransportAddress oldNode_var;
00591 bool isLeaf_var;
00592
00593
00594 bool operator==(const NTreeReplaceNodeMessage&);
00595
00596 public:
00597 NTreeReplaceNodeMessage(const char *name=NULL, int kind=0);
00598 NTreeReplaceNodeMessage(const NTreeReplaceNodeMessage& other);
00599 virtual ~NTreeReplaceNodeMessage();
00600 NTreeReplaceNodeMessage& operator=(const NTreeReplaceNodeMessage& other);
00601 virtual NTreeReplaceNodeMessage *dup() const {return new NTreeReplaceNodeMessage(*this);}
00602 virtual void parsimPack(cCommBuffer *b);
00603 virtual void parsimUnpack(cCommBuffer *b);
00604
00605
00606 virtual Vector2D& getOrigin();
00607 virtual const Vector2D& getOrigin() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getOrigin();}
00608 virtual void setOrigin(const Vector2D& origin_var);
00609 virtual double getSize() const;
00610 virtual void setSize(double size_var);
00611 virtual NodeHandle& getParent();
00612 virtual const NodeHandle& getParent() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getParent();}
00613 virtual void setParent(const NodeHandle& parent_var);
00614 virtual void setChildrenArraySize(unsigned int size);
00615 virtual unsigned int getChildrenArraySize() const;
00616 virtual NodeHandle& getChildren(unsigned int k);
00617 virtual const NodeHandle& getChildren(unsigned int k) const {return const_cast<NTreeReplaceNodeMessage*>(this)->getChildren(k);}
00618 virtual void setChildren(unsigned int k, const NodeHandle& children_var);
00619 virtual TransportAddress& getOldNode();
00620 virtual const TransportAddress& getOldNode() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getOldNode();}
00621 virtual void setOldNode(const TransportAddress& oldNode_var);
00622 virtual bool getIsLeaf() const;
00623 virtual void setIsLeaf(bool isLeaf_var);
00624 };
00625
00626 inline void doPacking(cCommBuffer *b, NTreeReplaceNodeMessage& obj) {obj.parsimPack(b);}
00627 inline void doUnpacking(cCommBuffer *b, NTreeReplaceNodeMessage& obj) {obj.parsimUnpack(b);}
00628
00640 class NTreeTakeOverMessage : public ::BaseOverlayMessage
00641 {
00642 protected:
00643 ::Vector2D origin_var;
00644 double size_var;
00645 ::NodeHandle player_var;
00646
00647
00648 bool operator==(const NTreeTakeOverMessage&);
00649
00650 public:
00651 NTreeTakeOverMessage(const char *name=NULL, int kind=0);
00652 NTreeTakeOverMessage(const NTreeTakeOverMessage& other);
00653 virtual ~NTreeTakeOverMessage();
00654 NTreeTakeOverMessage& operator=(const NTreeTakeOverMessage& other);
00655 virtual NTreeTakeOverMessage *dup() const {return new NTreeTakeOverMessage(*this);}
00656 virtual void parsimPack(cCommBuffer *b);
00657 virtual void parsimUnpack(cCommBuffer *b);
00658
00659
00660 virtual Vector2D& getOrigin();
00661 virtual const Vector2D& getOrigin() const {return const_cast<NTreeTakeOverMessage*>(this)->getOrigin();}
00662 virtual void setOrigin(const Vector2D& origin_var);
00663 virtual double getSize() const;
00664 virtual void setSize(double size_var);
00665 virtual NodeHandle& getPlayer();
00666 virtual const NodeHandle& getPlayer() const {return const_cast<NTreeTakeOverMessage*>(this)->getPlayer();}
00667 virtual void setPlayer(const NodeHandle& player_var);
00668 };
00669
00670 inline void doPacking(cCommBuffer *b, NTreeTakeOverMessage& obj) {obj.parsimPack(b);}
00671 inline void doUnpacking(cCommBuffer *b, NTreeTakeOverMessage& obj) {obj.parsimUnpack(b);}
00672
00673
00674 #endif // _NTREE_M_H_