/* * BulletClass.h * * Bullet class definition. * */ class Bullet: public MovingObject { /* * private: * Pos Old; * Pos Center; * Pos Vector; * Rect Bounds; * float Radius; * * public: * void moveOnScreen(void*); * virtual void erase(); * virtual void draw(); * virtual void destroy(); * */ public: Bullet() {} // Desc: Default constructor; // Usage: Should define all variables; // Note: This construction should *never* be actually used; // Note: All the data members will be UNDEFINED Bullet(Pos,Pos); // Desc: Construction for initializing Center and Vector; // Usage: Should define all variables; // Usage: Center will be passed in; // Usage: Vector will be passed in, on the order of .015; // Param: The Center and Vector; // Usage: Radius will be very small; ~Bullet(); // Desc: Destructor; // Usage: Set all data members to NULL or zero; int life; // Desc: The number of frames remaining; // Usage: Decremented in draw(); }