Fishtank
tank.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "fish.h"
4 #include "screen.h"
5 #include <string>
6 #include <vector>
7 
12 class Tank {
13 public:
16  explicit Tank(std::vector<Fish *> fish);
20  void draw(Screen *screen) const;
23  void tick();
24 
25 private:
26  std::vector<Fish *> fish_;
27 };
fish.h
screen.h
Screen
Represents the abstract notion of a character-addressable writable screen.
Definition: screen.h:4
Tank::draw
void draw(Screen *screen) const
Definition: tank.cpp:6
Tank::tick
void tick()
Definition: tank.cpp:12
Tank
Represents a collection of Fish.
Definition: tank.h:12
Tank::Tank
Tank(std::vector< Fish * > fish)
Definition: tank.cpp:4