using System;
using Server.Mobiles;

namespace Server.Engines.Quests.Collector
{
	public class CollectorQuest : QuestSystem
	{
		private static readonly Type[] m_TypeReferenceTable = new Type[]
			{
				typeof( DontOfferConversation ),
				typeof( DeclineConversation ),
				typeof( AcceptConversation ),
				typeof( ElwoodDuringFishConversation ),
				typeof( ReturnPearlsConversation ),
				typeof( AlbertaPaintingConversation ),
				typeof( AlbertaStoolConversation ),
				typeof( AlbertaEndPaintingConversation ),
				typeof( AlbertaAfterPaintingConversation ),
				typeof( ElwoodDuringPainting1Conversation ),
				typeof( ElwoodDuringPainting2Conversation ),
				typeof( ReturnPaintingConversation ),
				typeof( GabrielAutographConversation ),
				typeof( GabrielNoSheetMusicConversation ),
				typeof( NoSheetMusicConversation ),
				typeof( GetSheetMusicConversation ),
				typeof( GabrielSheetMusicConversation ),
				typeof( GabrielIgnoreConversation ),
				typeof( ElwoodDuringAutograph1Conversation ),
				typeof( ElwoodDuringAutograph2Conversation ),
				typeof( ElwoodDuringAutograph3Conversation ),
				typeof( ReturnAutographConversation ),
				typeof( TomasToysConversation ),
				typeof( TomasDuringCollectingConversation ),
				typeof( ReturnImagesConversation ),
				typeof( ElwoodDuringToys1Conversation ),
				typeof( ElwoodDuringToys2Conversation ),
				typeof( ElwoodDuringToys3Conversation ),
				typeof( FullEndConversation ),
				typeof( FishPearlsObjective ),
				typeof( ReturnPearlsObjective ),
				typeof( FindAlbertaObjective ),
				typeof( SitOnTheStoolObjective ),
				typeof( ReturnPaintingObjective ),
				typeof( FindGabrielObjective ),
				typeof( FindSheetMusicObjective ),
				typeof( ReturnSheetMusicObjective ),
				typeof( ReturnAutographObjective ),
				typeof( FindTomasObjective ),
				typeof( CaptureImagesObjective ),
				typeof( ReturnImagesObjective ),
				typeof( ReturnToysObjective ),
				typeof( MakeRoomObjective )
			};

		public override Type[] TypeReferenceTable{ get{ return m_TypeReferenceTable; } }

		public override object Name
		{
			get
			{
				//return 1020549; // This localized message seems broken...
				return "Collector's Quest";
			}
		}

		public override object OfferMessage
		{
			get
			{
				/* <I>Elwood greets you warmly, like an old friend he's not
				 * quite sure he ever had.</I><BR><BR>
				 * 
				 * Hello. Yes. Sit down. Please. Good. Okay, stand. Up to you.<BR><BR>
				 * 
				 * So, what brings you to these parts... hey, wait. Just had a thought.
				 * Would you like to do me a favor? Yes, really. You know, for old
				 * times sake. The good ole days. You were always one of my best
				 * suppliers. Or maybe you weren't, who knows any more. Anyway,
				 * could use some help supplementing my stock. You know me. Always
				 * looking for something new to add to the collection. Or sometimes
				 * not so new - just more of the same. But don't have to tell you that.
				 * You know, don't you. Yes. Just like old times. That's what it'll be.
				 * You and me - together again. Ah, it's been too long.<BR><BR>
				 * 
				 * So what do you think? The fee will be the same as always. I'm a fair
				 * man. You know that. So what do you say?
				 */
				return 1055081;
			}
		}

		public override TimeSpan RestartDelay{ get{ return TimeSpan.Zero; } }
		public override bool IsTutorial{ get{ return false; } }

		public override int Picture{ get{ return 0x15A9; } }

		public CollectorQuest( PlayerMobile from ) : base( from )
		{
		}

		// Serialization
		public CollectorQuest()
		{
		}

		public override void Accept()
		{
			base.Accept();

			AddConversation( new AcceptConversation() );
		}

		public override void Decline()
		{
			base.Decline();

			AddConversation( new DeclineConversation() );
		}
	}
}