#ifndef __RAY_H__ #define __RAY_H__ #include "dir.h" class Ray { public: Ray(int r, int c, Dir d, int l); Dir getDir(); void setDir(Dir d); void adjustPosition(int h, int v); bool expired(); int getRow(); int getCol(); private: int row; int col; Dir dir; int lifespan; }; #endif