//-------------------------------------------------------------------
//
//  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.
//
//-------------------------------------------------------------------

// Unit Explosion
class CPileChaletAsiaExplosion
  extends CBuildingExplosion

{
  float  Damage   = 50.0;
  float  Radius   = 80.0;
}

class CPileChaletAsiaUnit extends CGroundBuilding
{
  final static WString CockpitTargetPointerDesc = getLocalized("Buildings", "PileChaletAsiaPointa");
  final static WString TargetCameraDescription  = getLocalized("Buildings", "PileChaletAsiaCamera");

  void CPileChaletAsiaUnit()
  {
    // Creates and register model component
    SetupMesh(new #AnimatedObject<CPileChaletAsiaModel>());

    // Creates and register unit state component
    //   float HitPoints
    SetupStateControl(500.0, "PileChaletAsiaExplosion");
      // BulletHitEffect, BulletHitSound, ExplosionEffect, ExplosionSound
    SetDamageEffects(
        "MetalBulletHitEffect", "MetalBulletHitSound",
        "MetalExplosionEffect", "MetalExplosionSound"
      );
   }
  }
