/*
....[@@@..[@@@..............[@.................. MUD++ is a written from
....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and
....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++.
....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing
....[@......[@..[@@@@@..[@@@@@.................. development project.  All 
................................................ contributions are welcome. 
....Copyright(C).1995.Melvin.Smith.............. Enjoy. 
------------------------------------------------------------------------------
Melvin Smith (aka Fusion)         msmith@falcon.mercer.peachnet.edu 
MUD++ development mailing list    mudpp-list@spice.com
------------------------------------------------------------------------------
shop.h
*/

#ifndef _SHOP_H
#define _SHOP_H

#include "file.h"
#include "llist.h"
#include "index.h"
#include "npc.h"

class ShopKeeper : public NPC
{
	protected:
		Index shop;		// Room index
		short shop_open;
		short shop_close;
		short buy_profit;
		short sell_profit;
		LList<int> tradeList;

	public:
		ShopKeeper()
		:	shop_open( 6 ), shop_close( 18 ),
			buy_profit( 90 ), sell_profit( 110 )
		{
		}

		ShopKeeper( const NPC & npc )
		:	NPC( npc ),
			shop_open( 6 ), shop_close( 18 ),
			buy_profit( 90 ), sell_profit( 110 )
		{
		}

		bool isNPC() const { return true; }
		bool isShopKeeper() const { return true; }
		int readFrom( InFile & );
		int writeTo( OutFile & ) const;
		int readProtoFrom( InFile & ) {}
		int writeProtoTo( OutFile & ) const {}
};
#endif