Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "networking/netserver.h"
#include "networking/zonemgr.h"
#include "networking/lowlevel/vsnet_debug.h"
#include "networking/lowlevel/netbuffer.h"
#include "universe_util.h"
#include "universe_generic.h"
#include "cmd/unit_factory.h"
#include "networking/savenet_util.h"
#include "networking/prediction.h"
#include "networking/lowlevel/vsnet_sockethttp.h"
#include "lin_time.h"
#include "vs_random.h"
#include "save_util.h"
Go to the source code of this file.
Functions | |
StarSystem * | GetLoadedStarSystem (const char *system) |
void | displayUnitInfo (Unit *un, const string callsign, const char *type) |
Quaternion | MinRotationFromDirections (Vector start, Vector finish, double &theta) |
Vector | ApplyQuaternion (const Quaternion &quat, Vector input) |
ClientState | aim_assist (ClientState cs, ClientState ocs, QVector realtargetpos, Vector realtargetvel, Vector targetpos, Vector targetvel) |
ClientState | aim_assist (ClientState cs, ClientState ocs, Unit *target, Vector targetpos, Vector targetvel) |
ClientState | aim_assist_debug (float x, float y, float z, float vx, float vy, float vz, float rx, float ry, float rz, float vrx, float vry, float vrz, float forex, float forey, float forez) |
void | AddWriteSave (std::string &netbuf, int cpnum) |
void | AcctLogout (VsnetHTTPSocket *acct_sock, ClientPtr clt) |
void AcctLogout | ( | VsnetHTTPSocket * | acct_sock, |
ClientPtr | clt | ||
) |
Definition at line 619 of file netserver_clients.cpp.
References _Universe, ACCT_LOGOUT, ACCT_SAVE_LOGOUT, addSimpleChar(), addSimpleString(), AddWriteSave(), COUT, Client::INGAME, VsnetHTTPSocket::sendstr(), and Universe::whichPlayerStarship().
void AddWriteSave | ( | std::string & | netbuf, |
int | cpnum | ||
) |
Definition at line 611 of file netserver_clients.cpp.
References addSimpleString(), and SaveNetUtil::GetSaveStrings().
Referenced by AcctLogout().
ClientState aim_assist | ( | ClientState | cs, |
ClientState | ocs, | ||
QVector | realtargetpos, | ||
Vector | realtargetvel, | ||
Vector | targetpos, | ||
Vector | targetvel | ||
) |
Definition at line 343 of file netserver_clients.cpp.
References ApplyQuaternion(), UniverseUtil::cos(), FINITE, fprintf, Quaternion::from_vectors(), ClientState::getAngularVelocity(), ClientState::getOrientation(), ClientState::getPosition(), Matrix::getQ(), Matrix::getR(), VegaConfig::getVariable(), ClientState::getVelocity(), M_PI, MinRotationFromDirections(), XMLSupport::parse_bool(), XMLSupport::parse_float(), Quaternion::s, ClientState::setAngularVelocity(), ClientState::setOrientation(), Quaternion::to_matrix(), Quaternion::v, Vector, and vs_config.
Referenced by aim_assist(), aim_assist_debug(), and NetClient::sendPosition().
ClientState aim_assist | ( | ClientState | cs, |
ClientState | ocs, | ||
Unit * | target, | ||
Vector | targetpos, | ||
Vector | targetvel | ||
) |
Definition at line 472 of file netserver_clients.cpp.
References aim_assist(), Unit::Position(), and Unit::Velocity.
ClientState aim_assist_debug | ( | float | x, |
float | y, | ||
float | z, | ||
float | vx, | ||
float | vy, | ||
float | vz, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | vrx, | ||
float | vry, | ||
float | vrz, | ||
float | forex, | ||
float | forey, | ||
float | forez | ||
) |
Definition at line 477 of file netserver_clients.cpp.
References aim_assist(), Quaternion::from_vectors(), ClientState::getOrientation(), Matrix::getQ(), Matrix::getR(), QVector, Quaternion::to_matrix(), up, and Vector.
Vector ApplyQuaternion | ( | const Quaternion & | quat, |
Vector | input | ||
) |
Definition at line 331 of file netserver_clients.cpp.
References Quaternion::to_matrix(), and TransformNormal().
Referenced by aim_assist().
void displayUnitInfo | ( | Unit * | un, |
const string | callsign, | ||
const char * | type | ||
) |
Definition at line 46 of file zonemgr.cpp.
Referenced by ZoneMgr::addClient(), ZoneInfo::display(), ZoneMgr::displayNPCs(), ZoneMgr::removeClient(), NetServer::sendKill(), and NetServer::sendNewUnitQueue().
StarSystem* GetLoadedStarSystem | ( | const char * | system) |
Definition at line 786 of file star_system_generic.cpp.
Referenced by ZoneMgr::addZone(), GameUniverse::GenerateStarSystem(), and Universe::GenerateStarSystem().
Quaternion MinRotationFromDirections | ( | Vector | start, |
Vector | finish, | ||
double & | theta | ||
) |
Definition at line 314 of file netserver_clients.cpp.
References UniverseUtil::asin(), UniverseUtil::cos(), e, float, identity_quaternion(), M_PI, UniverseUtil::sin(), and Vector.
Referenced by aim_assist().