Want more features on Pastebin? Sign Up, it's FREE!
Guest

yuriks

By: a guest on Dec 2nd, 2008  |  syntax: C++  |  size: 0.71 KB  |  views: 243  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // PacketAcknowledge.cpp
  2.  
  3. PacketAcknowledge::PacketAcknowledge()
  4. {
  5. }
  6.  
  7. PacketAcknowledge *PacketAcknowledge::clone() const
  8. {
  9.         return new PacketAcknowledge(*this);
  10. }
  11.  
  12. void PacketAcknowledge::handle()
  13. {
  14.         // TODO
  15. }
  16.  
  17. PacketFactory::PacketIds PacketAcknowledge::getId() const
  18. {
  19.         return PacketFactory::PACKET_ACKNOWLEDGE;
  20. }
  21.  
  22. void PacketAcknowledge::serialize(Uint8 *data) const
  23. {
  24.         Packet::serialize(data);
  25.         //data += Packet::getPacketSize();
  26. }
  27.  
  28. void PacketAcknowledge::deserialize(Uint8 *data)
  29. {
  30.         Packet::deserialize(data);
  31.         //data += Packet::getPacketSize();
  32. }
  33.  
  34. int PacketAcknowledge::getPacketSize() const
  35. {
  36.         return Packet::getPacketSize() + 0;
  37. }
  38.  
  39. /*
  40. Packet contains no data
  41.  
  42. Size: 0
  43. */
clone this paste RAW Paste Data