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 BasicPlayBoxPhysics: public PlayBoxPhysics 00025 { 00026 private: 00027 00028 // Disable copy constructor and assignment operator 00029 BasicPlayBoxPhysics(const BasicPlayBoxPhysics &); 00030 BasicPlayBoxPhysics & operator=(const BasicPlayBoxPhysics &); 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 BasicPlayBoxPhysics(); 00060 00064 virtual ~BasicPlayBoxPhysics(); 00065 00066 // Override 00067 virtual void timeUpdate(float dt); 00068 }; 00069 00070 #endif