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
};
Screen
Represents the abstract notion of a character-addressable writable screen.
Definition:
screen.h:4
Tank
Represents a collection of Fish.
Definition:
tank.h:12
Tank::draw
void draw(Screen *screen) const
Definition:
tank.cpp:6
Tank::tick
void tick()
Definition:
tank.cpp:12
Tank::Tank
Tank(std::vector< Fish * > fish)
Definition:
tank.cpp:4
fish.h
screen.h
Generated by
1.9.1