00001 #ifndef PERSONAL_SHOP_INFO_HH_ 00002 # define PERSONAL_SHOP_INFO_HH_ 00003 00004 # include "incoming-packet.hh" 00005 # include "packets_fwd.hh" 00006 00007 namespace infos 00008 { 00009 class PersonalShopInfo : public packets::IncomingPacket 00010 { 00011 public: 00012 enum PersonalShopOperation 00013 { 00014 pso_item_added = 0x0a, 00015 pso_opened = 0x0c, 00016 pso_end_of_item_list = 0x0d, 00017 pso_closed = 0x11, 00018 pso_psersonal_shop_status = 0x14, 00019 pso_item_price = 0x15, 00020 pso_item_sold = 0x16 00021 }; 00022 00023 public: 00024 PersonalShopInfo(int size = 18); 00025 00026 const static int op = 0x59; 00027 00028 void print_tag(std::ostream &os) const; 00029 void print_data(std::ostream &os) const; 00030 void process(packets::PacketVisitor &ph); 00031 00032 int get_personal_shop_operation() const; 00033 int get_character_id() const; 00034 int get_item_id() const; 00035 int get_status() const; 00036 int get_count() const; 00037 int get_price() const; 00038 }; 00039 } 00040 00041 #endif