Fishtank
|
Represents a collection of Fish. More...
#include <tank.h>
Public Member Functions | |
Tank (std::vector< Fish * > fish) | |
void | draw (Screen *screen) const |
void | tick () |
Represents a collection of Fish.
Communicates the passage of time to its constituent Fish and also draws them to a Screen.
|
explicit |
void Tank::draw | ( | Screen * | screen | ) | const |
void Tank::tick | ( | ) |
Signal to every Fish that one unit of time has passed so that it may update its location. Calls Fish::tick on each.