SHARE
TWEET

yuriks

a guest Dec 2nd, 2008 293 Never
  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. */
RAW Paste Data
Top