/* * This file is part of the OdinMS Maple Story Server Copyright (C) 2008 ~ 2010 * Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan * Christian Meyer <vimes@odinms.de> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation. You may not use, modify or distribute this * program under any other version of the GNU Affero General Public License. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package javastory.channel.shops; import java.util.List; import javastory.channel.ChannelCharacter; import javastory.channel.ChannelClient; import javastory.io.GamePacket; public interface PlayerShop { public final static byte HIRED_MERCHANT = 1; public final static byte PLAYER_SHOP = 2; public String getOwnerName(); public String getDescription(); public List<ChannelCharacter> getVisitors(); public List<PlayerShopItem> getItems(); public boolean isOpen(); public boolean removeItem(int item); public boolean isOwner(ChannelCharacter chr); public byte getShopType(); public byte getVisitorSlot(ChannelCharacter visitor); public byte getFreeSlot(); public int getItemId(); public int getMeso(); public int getOwnerId(); public int getOwnerAccountId(); public void setOpen(boolean open); public void setMeso(int meso); public void addItem(PlayerShopItem item); public void removeFromSlot(int slot); public void broadcastToVisitors(GamePacket packet); public void addVisitor(ChannelCharacter visitor); public void removeVisitor(ChannelCharacter visitor); public void removeAllVisitors(int error, int type); public void buy(ChannelClient c, int item, short quantity); public void closeShop(boolean saveItems, boolean remove); }