00001 #ifndef TEAM_ACTION_HH_ 00002 # define TEAM_ACTION_HH_ 00003 00004 # include "outgoing-packet.hh" 00005 # include "packets_fwd.hh" 00006 00007 namespace actions 00008 { 00009 class TeamAction : public packets::OutgoingPacket 00010 { 00011 public: 00012 enum TeamOperation 00013 { 00014 to_invite_character = 0x01, 00015 to_invitation_reply = 0x03, 00016 to_status = 0x09 00017 }; 00018 00019 public: 00020 TeamAction(); 00021 00022 const static int op = 0x2f; 00023 00024 void print_tag(std::ostream &os) const; 00025 void print_data(std::ostream &os) const; 00026 void process(packets::PacketVisitor &ph); 00027 00028 void make_invitation_reply(bool accept); 00029 }; 00030 } 00031 00032 #endif