
398 12. Network Programming
e members are:
• shipData. A ShipStc structure that contains state information about the ship.
• torpedoData. A TorpedoStc structure that contains state information about the
torpedo.
e ShipStc structure contains the state information for a ship. It is declared in
ship.h.
struct ShipStc
{
float X;
float Y;
float radians;
float health;
VECTOR2 velocity;
float rotation;
short score;
UCHAR playerN;
UCHAR flags;
};
e members are:
• X. e x screen coordinate.
• Y. e y screen coordinate.
• radians. e rotation angle in radians.
• health. e health from 0 through 100.
• velocity. e velocity vector.
• rotation. e rotation ...