// CSE 143 // Homework 5 // http://www.cs.washington.edu/education/courses/143/00su/homework/ // 30 Jul 2000, Ken Yasuhara // class Object // // stationary objects, e.g. scene background elements, stars, // fireworks audience... #ifndef _OBJECT_H_ #define _OBJECT_H_ #include "gp142display.h" class Object { public: Object(const double newX, const double newY) : x(newX), y(newY) {} int getX() const { return (int)x; } int getY() const { return (int)y; } virtual void paint(GP142Display &display) const = 0; protected: // effectively disallow public use of default constructor Object() {} double x, y; }; #endif // _OBJECT_H_