00001 #ifndef ASSIGN_STATUS_HH_ 00002 # define ASSIGN_STATUS_HH_ 00003 00004 # include "outgoing-packet.hh" 00005 # include "packets_fwd.hh" 00006 00007 namespace actions 00008 { 00009 class AssignStatus : public packets::OutgoingPacket 00010 { 00011 public: 00012 enum Status 00013 { 00014 status_str = 1, 00015 status_dex, 00016 status_sta, 00017 status_int 00018 }; 00019 00020 public: 00021 AssignStatus(Status status); 00022 00023 const static int op = 0x11; 00024 00025 void print_tag(std::ostream &os) const; 00026 void print_data(std::ostream &os) const; 00027 void process(packets::PacketVisitor &ph); 00028 00029 Status get_status() const; 00030 00031 protected: 00032 Status _status; 00033 }; 00034 } 00035 00036 #endif