00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Rectangle shaped collider for use in the grid (between columns. - 00008 // - 00009 // --------------------------------------------------------------------------- 00010 00011 #ifndef RECTANGLECOLLIDER_H 00012 #define RECTANGLECOLLIDER_H 00013 00014 #include "Iw2D.h" 00015 00020 class RectangleCollider 00021 { 00022 public: 00026 RectangleCollider() {} 00027 00033 RectangleCollider(CIwFVec2 position, 00034 CIwFVec2 dimensions); 00035 00039 ~RectangleCollider() {} 00040 00045 float GetLeft(); 00046 00051 float GetRight(); 00052 00057 float GetCentre(); 00058 00063 float GetTop(); 00064 00069 float GetWidth(); 00070 00071 protected: 00073 CIwFVec2 m_position; 00074 00076 CIwFVec2 m_dimensions; 00077 }; 00078 00079 #endif