// aquadisplay.hpp // // Chris Nevison // March 15, 2000 // // This file declares a class AquaDisplay for the Aquarium simulation // defined in the files aquafish.h/cpp and aquamain.cpp. // This simulation shows the fish position in the aquarium after // each move. // The AquaDisplay class requires the the AquaFish class have // two public member functions not originally defined: // // Position, which returns an int for the position of the fish // in the tank (form 0 to tankSize - 1 inclusive) // // Direction, which returns a character 'l' or 'r' indicating // the current direction of the fish. // #ifndef _AQUADISPLAY_H #define _AQUADISPLAY_H #include "aquafish.h" class AquaDisplay{ public: AquaDisplay(int tankSize); void ShowFish(AquaFish f); private: int myTankSize; // size of tank to display, // should match size of tank for fish }; #endif