Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <unit_factory.h>
Static Public Member Functions | |
static Unit * | getMasterPartList () |
static Unit * | createUnit () |
static Unit * | createUnit (const char *filename, bool SubUnit, int faction, std::string customizedUnit=string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0, string *netxml=NULL, ObjSerial netcreate=0) |
static Unit * | createServerSideUnit (const char *filename, bool SubUnit, int faction, std::string customizedUnit=string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0) |
static Unit * | createUnit (std::vector< Mesh * > &meshes, bool Subunit, int faction) |
static Nebula * | createNebula (const char *unitfile, bool SubU, int faction, Flightgroup *fg=NULL, int fg_snumber=0, ObjSerial netcreate=0) |
static Missile * | createMissile (const char *filename, int faction, const string &modifications, const float damage, float phasedamage, float time, float radialeffect, float radmult, float detonation_radius, ObjSerial netcreate=0) |
static Planet * | createPlanet () |
static Planet * | createPlanet (QVector x, QVector y, float vely, const Vector &rotvel, float pos, float gravity, float radius, const std::string &filename, const std::string &technique, const std::string &unitname, BLENDFUNC blendsrc, BLENDFUNC blenddst, const vector< string > &dest, const QVector &orbitcent, Unit *parent, const GFXMaterial &ourmat, const std::vector< GFXLightLocal > &ligh, int faction, string fullname, bool inside_out=false, ObjSerial netcreate=0) |
static Enhancement * | createEnhancement (const char *filename, int faction, const string &modifications, Flightgroup *flightgrp=NULL, int fg_subnumber=0) |
static Building * | createBuilding (ContinuousTerrain *parent, bool vehicle, const char *filename, bool SubUnit, int faction, const std::string &unitModifications=std::string(""), Flightgroup *fg=NULL) |
static Building * | createBuilding (Terrain *parent, bool vehicle, const char *filename, bool SubUnit, int faction, const std::string &unitModifications=std::string(""), Flightgroup *fg=NULL) |
static Asteroid * | createAsteroid (const char *filename, int faction, Flightgroup *fg=NULL, int fg_snumber=0, float difficulty=.01, ObjSerial netcreate=0) |
static Terrain * | createTerrain (const char *file, Vector scale, float position, float radius, Matrix &t) |
static ContinuousTerrain * | createContinuousTerrain (const char *file, Vector scale, float position, Matrix &t) |
static void | addUnitBuffer (NetBuffer &netbuf, const string &filename, const string &name, const string &fullname, bool SubUnit, int faction, std::string customizedUnit, const ClientState &curr_state, Flightgroup *flightgroup, int fg_subnumber, string *netxml, ObjSerial netcreate) |
static void | addUnitBuffer (NetBuffer &netbuf, const Unit *un, string *netxml=NULL) |
static Unit * | parseUnitBuffer (NetBuffer &netbuf) |
static void | addPlanetBuffer (NetBuffer &netbuf, QVector x, QVector y, float vely, const Vector &rotvel, float pos, float gravity, float radius, const char *filename, BLENDFUNC sr, BLENDFUNC ds, const vector< string > &dest, const QVector &orbitcent, Unit *parent, const GFXMaterial &ourmat, const std::vector< GFXLightLocal > &ligh, int faction, string fullname, bool inside_out, ObjSerial netcreate) |
static Planet * | parsePlanetBuffer (NetBuffer &netbuf) |
static void | addNebulaBuffer (NetBuffer &netbuf, const char *unitfile, bool SubU, int faction, Flightgroup *fg, int fg_snumber, ObjSerial netcreate) |
static void | addNebulaBuffer (NetBuffer &netbuf, const Nebula *neb) |
static Nebula * | parseNebulaBuffer (NetBuffer &netbuf) |
static void | addMissileBuffer (NetBuffer &netbuf, const string &filename, const string &name, const string &fullname, int faction, const string &modifications, const ClientState &curr_state, const float damage, float phasedamage, float time, float radialeffect, float radmult, float detonation_radius, ObjSerial netcreate) |
static void | addMissileBuffer (NetBuffer &netbuf, const Missile *mis) |
static Missile * | parseMissileBuffer (NetBuffer &netbuf) |
static void | addAsteroidBuffer (NetBuffer &netbuf, const char *filename, int faction, Flightgroup *fg, int fg_snumber, float difficulty, ObjSerial netcreate) |
static void | addAsteroidBuffer (NetBuffer &netbuf, const Asteroid *ast) |
static Asteroid * | parseAsteroidBuffer (NetBuffer &netbuf) |
static void | addBuffer (NetBuffer &netbuf, const Unit *un, bool allowSystemTypes, string *netxml=NULL) |
static void | endBuffer (NetBuffer &netbuf) |
static void | broadcastUnit (Unit *un, unsigned short zone) |
Static Protected Attributes | |
static Unit * | _masterPartList = NULL |
Definition at line 40 of file unit_factory.h.
|
static |
Definition at line 323 of file unit_factory_generic.cpp.
References ZoneMgr::AddAsteroid, NetBuffer::addChar(), NetBuffer::addFloat(), NetBuffer::addInt32(), NetBuffer::addSerial(), NetBuffer::addString(), and Flightgroup::name.
Referenced by addAsteroidBuffer(), and addBuffer().
Definition at line 340 of file unit_factory_generic.cpp.
References addAsteroidBuffer(), Unit::faction, Unit::getFgSubnumber(), Unit::getFilename(), Unit::getFlightgroup(), and Unit::GetSerial().
|
static |
Definition at line 368 of file unit_factory_generic.cpp.
References addAsteroidBuffer(), addMissileBuffer(), addNebulaBuffer(), addUnitBuffer(), ASTEROIDPTR, Unit::isUnit(), MISSILEPTR, NEBULAPTR, and UNITPTR.
Referenced by ZoneMgr::getZoneBuffer(), and NetServer::sendNewUnitQueue().
|
static |
Definition at line 245 of file unit_factory_generic.cpp.
References NetBuffer::addChar(), NetBuffer::addClientState(), NetBuffer::addFloat(), NetBuffer::addInt32(), ZoneMgr::AddMissile, NetBuffer::addSerial(), NetBuffer::addString(), NetBuffer::addTransformation(), ClientState::getTransformation(), and NetBuffer::version().
Referenced by addBuffer(), and addMissileBuffer().
Definition at line 280 of file unit_factory_generic.cpp.
References addMissileBuffer(), Missile::damage, Missile::detonation_radius, Unit::faction, Unit::getFilename(), Unit::getFullname(), Unit::GetSerial(), Unit::name, Missile::phasedamage, Missile::radial_effect, Missile::radial_multiplier, and Missile::time.
|
static |
Definition at line 201 of file unit_factory_generic.cpp.
References NetBuffer::addChar(), NetBuffer::addInt32(), ZoneMgr::AddNebula, NetBuffer::addSerial(), NetBuffer::addString(), and Flightgroup::name.
Referenced by addBuffer(), and addNebulaBuffer().
Definition at line 218 of file unit_factory_generic.cpp.
References addNebulaBuffer(), Unit::faction, Unit::getFgSubnumber(), Unit::getFilename(), Unit::getFlightgroup(), Unit::GetSerial(), and Unit::isSubUnit().
|
static |
Definition at line 100 of file unit_factory_generic.cpp.
References NetBuffer::addChar(), NetBuffer::addFloat(), NetBuffer::addGFXLightLocal(), NetBuffer::addGFXMaterial(), NetBuffer::addInt32(), ZoneMgr::AddPlanet, NetBuffer::addQVector(), NetBuffer::addSerial(), NetBuffer::addShort(), NetBuffer::addString(), NetBuffer::addVector(), Unit::GetSerial(), i, j, QVector, and Vector.
|
static |
Definition at line 25 of file unit_factory_generic.cpp.
References NetBuffer::addChar(), NetBuffer::addClientState(), NetBuffer::addInt32(), NetBuffer::addSerial(), NetBuffer::addString(), NetBuffer::addTransformation(), ZoneMgr::AddUnit, ClientState::getTransformation(), Flightgroup::name, and NetBuffer::version().
Referenced by addBuffer(), and addUnitBuffer().
|
static |
Definition at line 55 of file unit_factory_generic.cpp.
References addUnitBuffer(), Unit::faction, Unit::fullname, Unit::getFgSubnumber(), Unit::getFilename(), Unit::getFlightgroup(), Unit::GetSerial(), Unit::isSubUnit(), and Unit::name.
|
static |
|
static |
Definition at line 233 of file unit_factory.cpp.
References KillDuplicateUnits(), and Unit::SetSerial().
Referenced by Mission::call_unit_launch(), and parseAsteroidBuffer().
|
static |
|
static |
Definition at line 216 of file unit_factory.cpp.
|
static |
|
static |
|
static |
Definition at line 116 of file unit_factory.cpp.
References KillDuplicateUnits(), and Unit::SetSerial().
Referenced by Unit::EjectCargo(), parseMissileBuffer(), and Mount::PhysicsAlignedFire().
|
static |
Definition at line 97 of file unit_factory.cpp.
References KillDuplicateUnits(), and Unit::SetSerial().
Referenced by Mission::call_unit_launch(), and parseNebulaBuffer().
|
static |
Definition at line 143 of file unit_factory.cpp.
Referenced by Planet::beginElement(), Mission::call_unit_launch(), and parsePlanetBuffer().
|
static |
Definition at line 150 of file unit_factory_server.cpp.
References _Universe, Universe::netLock(), and Unit::SetSerial().
|
static |
Definition at line 75 of file unit_factory.cpp.
Referenced by makeBlankUpgrade(), and Unit::UpAndDownGrade().
|
static |
|
static |
Definition at line 49 of file unit_factory.cpp.
Referenced by GamePlanet::AddFog(), Planet::AddSpaceElevator(), AddSubUnits(), AddUnitToSystem(), Planet::beginElement(), buildShipDescription(), buildUpgradeDescription(), buyShip(), Mission::call_unit_launch(), CreateGameTurret(), createObjects(), Unit::EjectCargo(), Unit::FilterDowngradeList(), getUnitFromUpgradeName(), Planet::InitPlanet(), FactionUtil::LoadContrabandLists(), LoadMission(), loadUnitByCache(), makeTemplateUpgrade(), parseUnitBuffer(), Mount::PhysicsAlignedFire(), UniverseUtil::precacheUnit(), NetClient::Respawn(), Briefing::Ship::Ship(), showUnitStats(), GameUnit< UnitType >::Split(), Cockpit::Update(), Unit::Upgrade(), Unit::UpgradeSubUnitsWithFactory(), and UpgradeUnit().
|
static |
Definition at line 54 of file unit_factory.cpp.
References StarSystemGent::faction, KillDuplicateUnits(), and Unit::SetSerial().
|
static |
|
static |
Definition at line 391 of file unit_factory_generic.cpp.
References NetBuffer::addChar(), and ZoneMgr::End.
Referenced by NetServer::sendNewUnitQueue().
|
static |
Definition at line 12 of file unit_factory_generic.cpp.
References _masterPartList, and Unit::makeMasterPartList().
Referenced by Unit::GetCargo(), UniverseUtil::GetMasterPartList(), GetUnitMasterPartList(), Unit::PriceCargo(), and Unit::RepairUpgrade().
Definition at line 346 of file unit_factory_generic.cpp.
References createAsteroid(), StarSystemGent::faction, accountXML::file, Mission::findFlightgroup(), FactionUtil::GetFactionName(), NetBuffer::getFloat(), NetBuffer::getInt32(), NetBuffer::getSerial(), NetBuffer::getString(), and mission.
Referenced by NetClient::AddObjects().
Definition at line 288 of file unit_factory_generic.cpp.
References createMissile(), Unit::curr_physical_state, StarSystemGent::faction, accountXML::file, Unit::fullname, NetBuffer::getClientState(), FactionUtil::GetFactionName(), NetBuffer::getFloat(), NetBuffer::getInt32(), NetBuffer::getSerial(), NetBuffer::getString(), NetBuffer::getTransformation(), Unit::name, ClientState::setUnitState(), and NetBuffer::version().
Referenced by NetClient::AddObjects().
Definition at line 224 of file unit_factory_generic.cpp.
References createNebula(), StarSystemGent::faction, accountXML::file, Mission::findFlightgroup(), NetBuffer::getChar(), FactionUtil::GetFactionName(), NetBuffer::getInt32(), NetBuffer::getSerial(), NetBuffer::getString(), and mission.
Referenced by NetClient::AddObjects().
Definition at line 149 of file unit_factory_generic.cpp.
References createPlanet(), StarSystemGent::faction, accountXML::file, NetBuffer::getChar(), FactionUtil::GetFactionName(), NetBuffer::getFloat(), NetBuffer::getGFXLightLocal(), NetBuffer::getGFXMaterial(), NetBuffer::getInt32(), NetBuffer::getQVector(), NetBuffer::getSerial(), NetBuffer::getShort(), NetBuffer::getString(), UniverseUtil::GetUnitFromSerial(), NetBuffer::getVector(), i, StarSystemGent::lights, VsnetOSS::memcpy(), QVector, Vector, x, and y.
Referenced by NetClient::AddObjects().
Definition at line 63 of file unit_factory_generic.cpp.
References createUnit(), Unit::curr_physical_state, StarSystemGent::faction, accountXML::file, Mission::findFlightgroup(), Unit::fullname, NetBuffer::getChar(), NetBuffer::getClientState(), FactionUtil::GetFactionName(), NetBuffer::getInt32(), NetBuffer::getSerial(), NetBuffer::getString(), NetBuffer::getTransformation(), mission, Unit::name, Flightgroup::newFlightgroup(), ClientState::setUnitState(), and NetBuffer::version().
Referenced by NetClient::AddObjects().
|
staticprotected |
Definition at line 43 of file unit_factory.h.
Referenced by getMasterPartList().