Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct coords{
- float x;
- float y;
- float z;
- float lenght;
- };
- class ocean{
- public:
- coords ocean_c;
- int box;
- float oc_speed;
- ocean();
- ocean(coords oc_input, int box_in, float oc_speed_in);
- coords coords_to_unit(coords temp);
- void change_ocean(coords temp);
- void change_ocean_speed(float oc_speed_in);
- };
- class fish:public ocean{
- public:
- coords fish_c;
- coords fish_direction;
- int fish_speed, time;
- fish();
- fish(coords oc_input, int box_in, float oc_speed_in, coords fish_input, coords fish_directions_input, int fish_speed_in);
- void show_coordinates();
- void move(float time);
- void change_fish(coords temp);
- void change_fish_speed(int fish_speed_in);
- friend ostream &operator<<(ostream& s, fish& d);
- };
Add Comment
Please, Sign In to add comment