subclass ShopList of List
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	elements        = $0
	size            = $0
	nextNode        = $0
	pOwner          = $0
}

instance exitBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $403		; 1027, pLevel
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_0505	; "Exit"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0
}

instance BulkCountStr of Str
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	data            = $0
	type            = $3		; z
}

instance BuyBulkCrystals of Code
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1

	doit()
}

instance buyBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $401		; 1025, pPoisonResistance
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_056c	; "Buy"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0

	handleError()
	choose()
	cue()
}

instance lookBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $401		; 1025, pPoisonResistance
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_0849	; "Look At"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0

	handleError()
	choose()
	cue()
}

instance prevBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $401		; 1025, pPoisonResistance
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_0874	; "Previous"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0

	choose()
}

instance browseBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $401		; 1025, pPoisonResistance
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_0885	; "Browse"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0

	choose()
}

instance topBtn of gameBarBtn
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $1
	canDrag         = $0
	state           = $401		; 1025, pPoisonResistance
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $232a		; 9002
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	value           = $0
	font            = $0
	dimmed          = $0
	fore            = $ffff		; -1
	back            = $ffff		; -1
	skip            = $fe		; 254, strIndex
	borderColor     = $ffff		; -1
	hiColor         = $0
	borderSize      = $1
	drawCode        = $0
	handler         = $0
	helpStr         = $0
	key             = $0
	text            = string_0896	; "Top"
	mode            = $1
	wide            = $0
	btnType         = $0
	textRect        = $0
	iconView        = $0
	normalColor     = $ffff		; -1
	selectColor     = $ffff		; -1
	chosenColor     = $ffff		; -1
	dimColor        = $ffff		; -1
	buttonSet       = $0
	buttonPtr       = $0
	checkMark       = $0
	lastState       = $0
	textOffsetX     = $0
	textOffsetY     = $0

	choose()
}

subclass TradeDlg of FancyDialog
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	elements        = $0
	size            = $0
	nextNode        = $0
	title           = $0
	font            = $0
	plane           = $0
	curItem         = $0
	caller          = $0
	seconds         = $0
	lastSeconds     = $0
	ticks           = $0
	state           = $0
	eatTheMice      = $0
	modal           = $1
	hidden          = $0
	keepDialog      = $0
	priority        = $0
	savedCursor     = $0
	prevItem        = $0
	selectHandler   = $0
	curShowMouseObj = $0
	retObject       = $0
	retSelector     = $0
	disposeList     = $0
	pItemList       = $0
	pItemSelector   = $0
	pHandleInput    = $0
	pAssets         = $0
	pPoints         = $0
	pItemAmt        = $0
	pShopId         = $0
	pNameText       = $0
	pPriceText      = $0

	init()
	dispose()
	handleEvent()
	fromPacket()
	buildList()
	buildSelector()
	newList()
	getAssets()
	getBuildPoints()
}

subclass CategoryInput of Code
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	pDlg            = $0

	doit()
}

subclass StoreItem of BitMap
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $0
	canDrag         = $0
	state           = $0
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $ffff		; -1
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	pOwner          = $0
	pName           = $0
	pClutStart      = $0
	pColor          = $0
	pClut           = $0

	init()
	dispose()
	width()
	height()
	addToCast()
	draw()
	setName()
}

subclass CategoryItem of StoreItem
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $0
	canDrag         = $0
	state           = $0
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $ffff		; -1
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	pOwner          = $0
	pName           = $0
	pClutStart      = $0
	pColor          = $0
	pClut           = $0
	pList           = $0

	init()
	dispose()
}

subclass TradeItem of StoreItem
{
	scratch         = $0
	pModule         = $ffff		; -1
	pLine           = $ffff		; -1
	top             = $0
	left            = $0
	bottom          = $0
	right           = $0
	canTrack        = $0
	canDrag         = $0
	state           = $0
	priority        = $0
	plane           = $0
	x               = $0
	y               = $0
	z               = $0
	scaleX          = $80		; 128, lastKey
	scaleY          = $80		; 128, lastKey
	maxScale        = $80		; 128, lastKey
	fixPriority     = $0
	seenRect        = $0
	view            = $ffff		; -1
	loop            = $0
	cel             = $0
	bitmap          = $0
	scaleSignal     = $0
	magnifier       = $0
	signal          = $0
	client          = $0
	clut            = $0
	pOwner          = $0
	pName           = $0
	pClutStart      = $0
	pColor          = $0
	pClut           = $0
	pPrice          = $0
	pIndex          = $0
	pType           = $0

	dispose()
	draw()
}

string_04fc	= "ShopList"
string_0505	= "Exit"
string_050a	= "exitBtn"
string_0512	= "BulkCountStr"
string_051f	= "You must specify a number that is greater than 0."
string_0551	= "Okay"
string_0556	= "Error"
string_055c	= "BuyBulkCrystals"
string_056c	= "Buy"
string_0570	= "1"
string_0572	= "How many mana crystals do you want to purchase?"
string_05a2	= "Cancel"
string_05a9	= "Bulk Buy"
string_05b2	= "You have aquired a %s spell."
string_05cf	= "You purchased the %s."
string_05e5	= "You purchased the crystals."
string_0601	= "gold to purchase the %s spell."
string_0620	= "build points to improve your\n" \
		  "%s skill!"
string_0647	= "gold to purchase the %s."
string_0660	= "gold to purchase the crystals."
string_067f	= "I am unable to fulfill your request because\n" \
		  "you haven't enough %s"
string_06c1	= "My apologies, I cannot sell you the %s because it would be too heavy for you to carry.\n" \
		  "You may try dropping something or store another item in a pack.\n"
string_0759	= "My apologies, I cannot sell you the %s because it would be to bulky for you to carry.\n" \
		  "You may have to drop something or store another item in a pack.\n"
string_07f0	= "My apologies leige, but you have learned all you can of %s.\n"
string_082d	= "You cannot buy that."
string_0842	= "buyBtn"
string_0849	= "Look At"
string_0851	= "You cannot see it clearly."
string_086c	= "lookBtn"
string_0874	= "Previous"
string_087d	= "prevBtn"
string_0885	= "Browse"
string_088c	= "browseBtn"
string_0896	= "Top"
string_089a	= "topBtn"
string_08a1	= "Category"
string_08aa	= "Price"
string_08b0	= "Available gold:\n" \
		  "%s"
string_08c3	= "Your build points:\n" \
		  "%d"
string_08d9	= "I am sorry, I have nothing\n" \
		  "to sell you right now."
string_090b	= "Item"
string_0910	= "I have nothing to sell you."
string_092c	= "TradeDlg"
string_0935	= "CategoryInput"
string_0943	= "StoreItem"
string_094d	= "CategoryItem"
string_095a	= "%s"
string_095d	= "TradeItem"

