//-------------------------------------------------------------------
//
//  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 CBarrelStackMesh
{
  string MeshFile = "Models/B_Barrel_Stack.mesh";
  string SkinFile = "Models/B_Barrel_Stack.skin";
}

class CBarrelStackStateControl extends CUnitLifeControl
{
  void CBarrelStackStateControl()
  {
    CUnitLifeControl(200.0);
    m_DestroyPause = 0.0;
    m_ExplosionId  = "EXPLID_BarrelStackExplosion";
  }
}

// Building without ground control (for use in villages)
class CBaseBarrelStack extends CBuilding, CUnitWithStateControl
{
  void CBaseBarrelStack()
  {
    InitializeModelAsStatic("CBarrelStackMesh");
    CUnitWithStateControl("CBarrelStackStateControl");
    Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
  }
}

// Single game object
class CMountedBarrelStack extends CBaseBarrelStack
{
  void CMountedBarrelStack()
  {
    InitializeGroundControl();
  }
}


