Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

collisionmessage.hh

Go to the documentation of this file.
00001 #ifndef _collisionmessage_hh_
00002 #define _collisionmessage_hh_
00003 
00004 #include "message.hh"
00005 #include "vector.hh"
00006 
00007 class CollisionMessage: public anoid::base::Message {
00008     protected:
00009         anoid::simple::Vector *normal;
00010         anoid::simple::Vector *p1, *p2;
00011         anoid::base::Element *other;
00012     public:
00013         void setNormal(anoid::simple::Vector *n) { normal = n; }
00014         void setP1(anoid::simple::Vector *p) { p1 = p; }
00015         void setP2(anoid::simple::Vector *p) { p2 = p; }
00016         anoid::simple::Vector *getNormal() { return normal; }
00017         anoid::simple::Vector *getP1() { return p1; }
00018         anoid::simple::Vector *getP2() { return p2; }
00019         void setOther(anoid::base::Element *o) { other = o; }
00020         anoid::base::Element *getOther() { return other; }
00021         CollisionMessage();
00022 };
00023 
00024 #endif

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen