tmw/src/net/ea/protocol.cpp File Reference

#include "net/ea/protocol.h"

Go to the source code of this file.

Defines

#define LOBYTE(w)   ((unsigned char)(w))
#define HIBYTE(w)   ((unsigned char)(((unsigned short)(w)) >> 8))

Functions

void set_coordinates (char *data, unsigned short x, unsigned short y, unsigned char direction)
 Encodes coords and direction in 3 bytes data.


Define Documentation

#define HIBYTE (  )     ((unsigned char)(((unsigned short)(w)) >> 8))

Definition at line 25 of file protocol.cpp.

#define LOBYTE (  )     ((unsigned char)(w))

Definition at line 24 of file protocol.cpp.


Function Documentation

void set_coordinates ( char *  data,
unsigned short  x,
unsigned short  y,
unsigned char  direction 
)

Encodes coords and direction in 3 bytes data.

Definition at line 27 of file protocol.cpp.


Generated on Sun Apr 26 17:30:42 2009 for The Mana World by  doxygen 1.5.5