16 SClientPacket outpacket;
25 void waypoints::Sort(
short sortfield,
char sortdirection,
int* linecursel,
int* lineact)
const 40 if (sortdirection == 1)
51 else if (sortfield == 3)
54 float thisdist = D3DXVec3Length(&result);
56 float nextdist = D3DXVec3Length(&result);
58 if (sortdirection == 1)
60 if (thisdist > nextdist)
65 if (thisdist < nextdist)
80 else if (*linecursel == (s + 1))
84 else if (*lineact == (s + 1))
106 SClientPacket outpacket;
108 outpacket.f_x = 1.0f;
110 outpacket.f_z = 0.0f;
111 outpacket.f_w = 0.0f;
124 outpacket.f_x = 0.0f;
126 outpacket.f_z = 0.0f;
127 outpacket.f_w = 0.0f;
140 sprintf_s(msg, 99,
"Found received waypoint at %i, updating (%i)!", t, tempwaypoint.id);
147 sprintf_s(msg, 99,
"Could not find received waypoint, adding (%i)!", tempwaypoint.id);
176 std::vector<Swaypoint> newwaypoints;
188 SPacketHuge hugePacket;
189 hugePacket.type = 18;
190 hugePacket.waypoint = swaypoint;
void Update(Swaypoint waypoint) const
void RequestWaypointData() const
void SendToServer(void *pData, DWORD dwSize, bool bGuaranteed, PacketOrdering order=ORDERING_NONE) const
s_network_objects playerships[MAX_SCAN]
void Upload(Swaypoint swaypoint) const
void AddOrUpdate(Swaypoint tempwaypoint) const
void Sort(short sortfield, char sortdirection, int *linecursel, int *lineact) const
waypoints(GameClass *prmGameClass)
void Log(const char *msg, Level level=Info, int errorCode=0)
std::vector< Swaypoint > GetGroup(short group) const
std::vector< Swaypoint > waypoint
short FindByUniqueId(int id) const
void AddToCallStack(const char *msg)
void Delete(int index) const
short Find(int uniqueid) const