// CSE 143 // Homework 5 // http://www.cs.washington.edu/education/courses/143/00su/homework/ // 30 Jul 2000, Ken Yasuhara #include "movingobject.h" // virtual void MovingObject::getNextPosition(double &nextX, double &nextY) { nextX = x + vx; nextY = y + vy; } // virtual void MovingObject::updatePosition() { double nextX, nextY; getNextPosition(nextX, nextY); x = nextX; y = nextY; }