using System;
using Server;
namespace System.Animals
{
public sealed class BunnySlaughterHood
{
public static void Initialize()
{
Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), new DelayCallback( SlaughterBunny ) );
}
private static void SlaughterBunny()
{
foreach( Mobile m in World.Mobiles.Values )
if( m is Bunny )
{
Slaughter( m as Bunny );
return;
}
Timer.DelayCall( TimeSpan.FromHours( 1.0 ), new TimerCallback( SlaughterBunny ) );
}
private static void Slaughter( Bunny b )
{
b.SendMessage( "Somebody didn't sign my Guest Book. You deserve nothing but death." );
Timer.DelayCall( TimeSpan.FromSeconds( 3.0 ), new TimerStateCallback( Slaughter ), b );
}
private static void Slaughter( object state )
{
Bunny b = state as Bunny;
if( b != null )
b.Kill();
}
}
}