Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpWaterManager.h
Show All 20 Lines | |||||
#include "simulation2/system/Interface.h" | #include "simulation2/system/Interface.h" | ||||
#include "simulation2/helpers/Position.h" | #include "simulation2/helpers/Position.h" | ||||
class ICmpWaterManager : public IComponent | class ICmpWaterManager : public IComponent | ||||
{ | { | ||||
public: | public: | ||||
/** | /** | ||||
* Recompute all the water information (foam...) | |||||
*/ | |||||
virtual void RecomputeWaterData() = 0; | |||||
/** | |||||
* Set the height of the water level, as a constant value across the whole map. | * Set the height of the water level, as a constant value across the whole map. | ||||
*/ | */ | ||||
virtual void SetWaterLevel(entity_pos_t h) = 0; | virtual void SetWaterLevel(entity_pos_t h) = 0; | ||||
/** | /** | ||||
* Get the current water level at the given point. | * Get the current water level at the given point. | ||||
*/ | */ | ||||
virtual entity_pos_t GetWaterLevel(entity_pos_t x, entity_pos_t z) const = 0; | virtual entity_pos_t GetWaterLevel(entity_pos_t x, entity_pos_t z) const = 0; | ||||
Show All 10 Lines |
Wildfire Games · Phabricator