home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CWaterTowerMesh
- {
- string MeshFile = "Models/B_WaterTower.mesh";
- string SkinFile = "Models/B_WaterTower.skin";
- }
-
- class CWaterTowerStateControl extends CUnitLifeControl
- {
- void CWaterTowerStateControl()
- {
- CUnitLifeControl(3500.0);
- m_DestroyPause = 20.0;
- m_ExplosionId = "EXPLID_BuildingExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseWaterTower extends CBuilding, CUnitWithStateControl
- {
- void CBaseWaterTower()
- {
- InitializeModelAsStatic("CWaterTowerMesh");
- CUnitWithStateControl("CWaterTowerStateControl");
- }
- }
-
- // Single game object
- class CMountedWaterTower extends CBaseWaterTower
- {
- void CMountedWaterTower()
- {
- InitializeGroundControl();
- }
- }
-
-
-
-