storyworld
Class ShopStory

java.lang.Object
  extended by storyworld.AbstractStory
      extended by storyworld.SingleLocationStory
          extended by storyworld.ShopStory
Direct Known Subclasses:
MyShop

public abstract class ShopStory
extends SingleLocationStory


Field Summary
(package private)  String description
           
 Map<String,ShopItem> items
           
(package private)  boolean outside
           
 
Fields inherited from class storyworld.AbstractStory
debug
 
Constructor Summary
ShopStory()
           
 
Method Summary
 void addItem(Marker item, Marker buy, Marker sell)
           
 void addItem(ShopItem item)
           
 void addItem(String name, int numberInStock, String buyType, int buyNumber, String sellType, int sellNumber)
           
protected  Report createInventoryReport()
           
protected  Report createReport()
           
 void printInventory()
           
 void receiveMessage(String s)
           
 void setDescription(String s)
           
 void shopBuys(String name, int numberInStock, String sellType, int sellNumber)
           
 void shopSells(String name, int numberInStock, String buyType, int buyNumber)
           
 
Methods inherited from class storyworld.SingleLocationStory
createReport, getStoryLocationName, moveStoryTo, startStoryAt
 
Methods inherited from class storyworld.AbstractStory
activateStory, activateStoryByName, addConnection, addLocation, changeLocationName, createHiddenMarker, deactivateStory, deNotifyLocation, deNotifyLocation, enter, exit, getFullReport, getImageName, getLocation, getMarker, getMidiName, getName, getNextFocusStory, getPlayerLocation, getRandomLocation, getRandomNeighbour, getType, getValue, getWorld, increaseValue, introduceStory, isActive, movePlayerTo, notifyLocation, notifyLocation, playerIsIn, receiveMessage, removeConnection, sendMessage, sendStats, setActive, setHiddenValue, setImageName, setMidiName, setNextStory, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

String description

items

public Map<String,ShopItem> items

outside

boolean outside
Constructor Detail

ShopStory

public ShopStory()
Method Detail

addItem

public void addItem(Marker item,
                    Marker buy,
                    Marker sell)

addItem

public void addItem(ShopItem item)

addItem

public void addItem(String name,
                    int numberInStock,
                    String buyType,
                    int buyNumber,
                    String sellType,
                    int sellNumber)

createInventoryReport

protected Report createInventoryReport()

createReport

protected Report createReport()
Specified by:
createReport in class SingleLocationStory

printInventory

public void printInventory()

receiveMessage

public void receiveMessage(String s)
Overrides:
receiveMessage in class AbstractStory

setDescription

public void setDescription(String s)

shopBuys

public void shopBuys(String name,
                     int numberInStock,
                     String sellType,
                     int sellNumber)

shopSells

public void shopSells(String name,
                      int numberInStock,
                      String buyType,
                      int buyNumber)