00001 #ifndef TEAM_INFO_HH_ 00002 # define TEAM_INFO_HH_ 00003 00004 # include "incoming-packet.hh" 00005 # include "packets_fwd.hh" 00006 00007 namespace infos 00008 { 00009 class TeamInfo : public packets::IncomingPacket 00010 { 00011 public: 00012 enum TeamOperation 00013 { 00014 to_incoming_invitation = 0x0c, 00015 to_invitation_status = 0x0e, 00016 to_dismissed = 0x11, 00017 to_character_left = 0x12 00018 }; 00019 00020 public: 00021 TeamInfo(int size = 10); 00022 00023 const static int op = 0x46; 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 int get_team_operation() const; 00030 int get_character_id() const; 00031 }; 00032 } 00033 00034 #endif