// Interface for the simulation object classes // CSE143 HW6 // #ifndef _SIM_OBJECT_H #define _SIM_OBJECT_H // SimObject: models the basic operations of an object in the simulation. // Every simulation object should be able to draw itself on the screen, // by implementing the abstract function draw(). Every object also gets a // chance to update its position or state every clock tick, by implementing // the abstract function tick(). #include "gp142display.h" class SimObject { public: SimObject() {} virtual ~SimObject() {} // Draw the simulated object on the graphics window specified by "gp". virtual void draw(GP142Display& gp) = 0; // Updates the object to reflect the passage of one timer tick. virtual void tick() = 0; }; #endif // end of file