Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6565


Ignore:
Timestamp:
Mar 18, 2010, 10:44:37 PM (15 years ago)
Author:
smerkli
Message:

Test commit, added a couple of comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/chat/src/libraries/network/packet/Chat.h

    r6073 r6565  
    4141{
    4242public:
     43  /* constructors */
    4344  Chat( const std::string& message, unsigned int playerID );
    4445  Chat( uint8_t* data, unsigned int clientID );
     46
     47  /* destructor */
    4548  ~Chat();
    4649
     50  /* get size of packet */
    4751  inline unsigned int getSize() const;
     52
     53  /* process chat message packet and remove it afterwards */
    4854  bool process();
    4955
     56  /* Get the length of the message (not the full size of the packet) */
    5057  unsigned int getMessageLength(){ return messageLength_; };
     58
     59  /* return message content */
    5160  unsigned char *getMessage();
     61
    5262private:
     63
     64  /* Message length */
    5365  uint32_t messageLength_;
     66
     67  /* Client ID (an integral value for identification) */
    5468  unsigned int clientID_;
    5569};
Note: See TracChangeset for help on using the changeset viewer.