Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #ifndef WATERENTITY_H
  2. #define WATERENTITY_H
  3. #include <vector>
  4. extern const float pi;
  5. class WaterEntity
  6. {
  7. public:
  8. WaterEntity();
  9. ~WaterEntity();
  10. virtual bool moveOnSteps(int arg_steps)=0;
  11. bool setDestination(WaterEntity* arg_ptr_destination);
  12. WaterEntity* getDestination();
  13. bool setTimeStep(float arg_timestep);
  14. float getTimeStep();
  15. bool setGravity(float arg_gravity);
  16. float getGravity();
  17. virtual bool acceptVolume(float arg_volume)=0;
  18. virtual float getExtraDistance()=0;
  19. std::string getId();
  20. void setId(std::string thing);
  21. protected:
  22. std::vector<float> vec_volumes;
  23. std::vector<float> vec_ratesofflow;
  24. float timestep;
  25. float gravity;
  26. WaterEntity* ptr_destination;
  27. std::string id;
  28. };
  29.  
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement