//-------------------------------------------------------------------------------------------------- // CParticle. // A class to represent a particle with its position and the forces that can be applied to it. //-------------------------------------------------------------------------------------------------- #ifndef __CPARTICLE_H__ #define __CPARTICLE_H__ #include #include "CVector.h" class CParticle { public: CParticle(void); CParticle(float aX, float aY, float aVelX, float aVelY, float aAccelX, float aAccelY); ~CParticle(void); void destroy(void); void update(void); float getX(void); float getY(void); void setXY(int aX, int aY); void setXVel(float aXVel); void setYVel(float aYVel); private: // Position vector. CVector *mPos; // Velocity vector. CVector *mVel; // Acceleration Vector. CVector *mAccel; }; #endif /* __CPARTICLE_H_ */