Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef WATERENTITY_H
- #define WATERENTITY_H
- #include <vector>
- extern const float pi;
- class WaterEntity
- {
- public:
- WaterEntity();
- ~WaterEntity();
- virtual bool moveOnSteps(int arg_steps)=0;
- bool setDestination(WaterEntity* arg_ptr_destination);
- WaterEntity* getDestination();
- bool setTimeStep(float arg_timestep);
- float getTimeStep();
- bool setGravity(float arg_gravity);
- float getGravity();
- virtual bool acceptVolume(float arg_volume)=0;
- virtual float getExtraDistance()=0;
- std::string getId();
- void setId(std::string thing);
- protected:
- std::vector<float> vec_volumes;
- std::vector<float> vec_ratesofflow;
- float timestep;
- float gravity;
- WaterEntity* ptr_destination;
- std::string id;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement