Guest User

Untitled

a guest
Apr 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct coords{
  5. float x;
  6. float y;
  7. float z;
  8. float lenght;
  9. };
  10.  
  11. class ocean{
  12. public:
  13. coords ocean_c;
  14. int box;
  15. float oc_speed;
  16.  
  17. ocean();
  18. ocean(coords oc_input, int box_in, float oc_speed_in);
  19. coords coords_to_unit(coords temp);
  20. void change_ocean(coords temp);
  21. void change_ocean_speed(float oc_speed_in);
  22. };
  23.  
  24. class fish:public ocean{
  25. public:
  26. coords fish_c;
  27. coords fish_direction;
  28. int fish_speed, time;
  29.  
  30. fish();
  31. fish(coords oc_input, int box_in, float oc_speed_in, coords fish_input, coords fish_directions_input, int fish_speed_in);
  32. void show_coordinates();
  33. void move(float time);
  34. void change_fish(coords temp);
  35. void change_fish_speed(int fish_speed_in);
  36.  
  37. friend ostream &operator<<(ostream& s, fish& d);
  38. };
Add Comment
Please, Sign In to add comment