1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef WORM_H #define WORH_H #include "position.h" class Map; class Worm { public: Worm( int iId, const Position &rpStart, Map &rMap ); virtual ~Worm(); bool timestep(); private: int iId; Position pCur; Map &rMap; int iDist; }; #endif