Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpTerrain.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public: | ||||
virtual CTerrain* GetCTerrain() = 0; | virtual CTerrain* GetCTerrain() = 0; | ||||
/** | /** | ||||
* Call when the underlying CTerrain has been modified behind our backs. | * Call when the underlying CTerrain has been modified behind our backs. | ||||
* (TODO: eventually we should manage the CTerrain in this class so nobody | * (TODO: eventually we should manage the CTerrain in this class so nobody | ||||
* can modify it behind our backs). | * can modify it behind our backs). | ||||
*/ | */ | ||||
virtual void ReloadTerrain(bool ReloadWater = true) = 0; | virtual void ReloadTerrain() = 0; | ||||
/** | /** | ||||
* Indicate that terrain tiles within the given region (inclusive lower bound, | * Indicate that terrain tiles within the given region (inclusive lower bound, | ||||
* exclusive upper bound) have been changed. CMessageTerrainChanged will be | * exclusive upper bound) have been changed. CMessageTerrainChanged will be | ||||
* sent to any components that care about terrain changes. | * sent to any components that care about terrain changes. | ||||
*/ | */ | ||||
virtual void MakeDirty(i32 i0, i32 j0, i32 i1, i32 j1) = 0; | virtual void MakeDirty(i32 i0, i32 j0, i32 i1, i32 j1) = 0; | ||||
DECLARE_INTERFACE_TYPE(Terrain) | DECLARE_INTERFACE_TYPE(Terrain) | ||||
}; | }; | ||||
#endif // INCLUDED_ICMPTERRAIN | #endif // INCLUDED_ICMPTERRAIN |
Wildfire Games · Phabricator