00001 00014 #ifndef _BASIC_PLAY_BOX_PHYSICS_H_ 00015 #define _BASIC_PLAY_BOX_PHYSICS_H_ 00016 00017 #include "play_box_physics.h" 00018 00024 class AdhesivePlayBoxPhysics: public PlayBoxPhysics 00025 { 00026 private: 00027 00028 // Disable copy constructor and assignment operator 00029 AdhesivePlayBoxPhysics(const AdhesivePlayBoxPhysics &); 00030 AdhesivePlayBoxPhysics & operator=(const AdhesivePlayBoxPhysics &); 00031 00035 void fixHorizontalWallCollision(Bubble* bubble, float borderPos); 00036 00040 void fixVerticalWallCollision(Bubble* bubble, float borderPos); 00041 00042 // Override 00043 virtual void fixLeftWallCollision(Bubble* bubble, float borderPos); 00044 00045 // Override 00046 virtual void fixRightWallCollision(Bubble* bubble, float borderPos); 00047 00048 // Override 00049 virtual void fixTopWallCollision(Bubble* bubble, float borderPos); 00050 00051 // Override 00052 virtual void fixBottomWallCollision(Bubble* bubble, float borderPos); 00053 00054 public: 00055 00059 AdhesivePlayBoxPhysics(); 00060 00064 virtual ~AdhesivePlayBoxPhysics(); 00065 00066 // Override 00067 virtual void timeUpdate(float dt); 00068 }; 00069 00070 #endif