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

class CGermanTentStateControl extends CUnitLifeControl
{
  void CGermanTentStateControl()
  {
    CUnitLifeControl(500.0);
    m_DestroyPause = 7.5;
    m_ExplosionId  = "EXPLID_ItemExplosion";
  }
}

// Building without ground control (for use in villages)
class CBaseGermanTent extends CBuilding, CUnitWithStateControl
{
  void CBaseGermanTent()
  {
    InitializeModelAsStatic("CGermanTentMesh");
    CUnitWithStateControl("CGermanTentStateControl");
    Core_AddClassificator("German");
    Core_AddClassificator("Tent"); // for cockpit identification
  }
}

// Single game object
class CMountedGermanTent extends CBaseGermanTent
{
  void CMountedGermanTent()
  {
    InitializeGroundControl();
  }
}

