Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Planet Class Reference

#include <planet_generic.h>

Inheritance diagram for Planet:
Unit

Classes

class  PlanetIterator
 

Public Member Functions

virtual ~Planet ()
 
virtual Vector AddSpaceElevator (const std::string &name, const std::string &faction, char direction)
 
virtual void AddFog (const vector< AtmosphericFogMesh > &meshes, bool optical_illusion)
 
virtual void AddAtmosphere (const std::string &texture, float radius, BLENDFUNC blendSrc, BLENDFUNC blendDst, bool inside_out)
 
virtual void AddRing (const std::string &texture, float iradius, float oradius, const QVector &r, const QVector &s, int slices, int numwrapx, int numwrapy, BLENDFUNC blendSrc, BLENDFUNC blendDst)
 
virtual void AddCity (const std::string &texture, float radius, int numwrapx, int numwrapy, BLENDFUNC blendSrc, BLENDFUNC blendDst, bool inside_out=false, bool reverse_normals=true)
 
virtual void DisableLights ()
 
virtual void EnableLights ()
 
void AddSatellite (Unit *orbiter)
 
void endElement ()
 
string getCargoUnitName () const
 
string getHumanReadablePlanetType () const
 
UnitbeginElement (QVector x, QVector y, float vely, const Vector &rotvel, float pos, float gravity, float radius, const string &filename, const string &technique, const string &unitname, BLENDFUNC blendsrc, BLENDFUNC blenddst, const vector< string > &dest, int level, const GFXMaterial &ourmat, const std::vector< GFXLightLocal > &ligh, bool isunit, int faction, string fullname, bool inside_out)
 
PlanetGetTopPlanet (int level)
 
virtual enum clsptr isUnit () const
 
virtual void Draw (const Transformation &quat=identity_transformation, const Matrix &m=identity_matrix)
 
virtual void DrawTerrain ()
 
virtual void Kill (bool erasefromsave=false)
 
virtual PlanetaryTransform * setTerrain (ContinuousTerrain *, float ratiox, int numwraps, float scaleatmos)
 
virtual ContinuousTerraingetTerrain (PlanetaryTransform *&t)
 
virtual void setAtmosphere (Atmosphere *)
 
virtual AtmospheregetAtmosphere ()
 
virtual void reactToCollision (Unit *smaller, const QVector &biglocation, const Vector &bignormal, const QVector &smalllocation, const Vector &smallnormal, float dist)
 
PlanetIterator createIterator ()
 
bool isAtmospheric ()
 
bool hasLights ()
 
const std::vector< int > & activeLights ()
 
- Public Member Functions inherited from Unit
 Unit (bool kill)
 
void Kill ()
 
bool Killed ()
 
void Ref ()
 
void UnRef ()
 
 Unit ()
 
 Unit (int dummy)
 
 Unit (std::vector< Mesh * > &meshes, bool Subunit, int faction)
 
 Unit (const char *filename, bool SubUnit, int faction, std::string customizedUnit=std::string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0, std::string *netxml=NULL)
 
void Init ()
 
void Init (const char *filename, bool SubUnit, int faction, std::string customizedUnit=std::string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0, std::string *netxml=NULL)
 
void LoadRow (class CSVRow &row, std::string unitMod, std::string *netxml=NULL)
 
virtual ~Unit ()
 
void SetNetworkMode (bool mode=true)
 
ObjSerial GetSerial () const
 
void SetSerial (ObjSerial)
 
void BackupState ()
 
bool UpgradeSubUnitsWithFactory (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, double &percentage, Unit *(*createupgradesubunit)(std::string s, int faction))
 
virtual bool UpgradeSubUnits (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, double &percentage)
 
bool UpgradeMounts (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, const Unit *templ, double &percentage)
 
un_iter getSubUnits ()
 
un_kiter viewSubUnits () const
 
bool isSubUnit () const
 
void setFaceCamera ()
 
bool UpAndDownGrade (const Unit *up, const Unit *templ, int mountoffset, int subunitoffset, bool touchme, bool downgrade, int additive, bool forcetransaction, double &percentage, const Unit *downgrade_min, bool force_change_on_nothing, bool gen_downgrade_list)
 
void ImportPartList (const std::string &category, float price, float pricedev, float quantity, float quantdev)
 
int GetNumMounts () const
 
void ClearMounts ()
 
virtual void UpgradeInterface (Unit *base)
 
bool canUpgrade (const Unit *upgrador, int mountoffset, int subunitoffset, int additive, bool force, double &percentage, const Unit *templ=NULL, bool force_change_on_nothing=false, bool gen_downgrade_list=true)
 
bool Upgrade (const Unit *upgrador, int mountoffset, int subunitoffset, int additive, bool force, double &percentage, const Unit *templ=NULL, bool force_change_on_nothing=false, bool gen_downgrade_list=true)
 
int RepairCost ()
 
int RepairUpgrade ()
 
bool RepairUpgradeCargo (Cargo *item, Unit *baseUnit, float *credits)
 
Vector MountPercentOperational (int whichmount)
 
bool ReduceToTemplate ()
 
virtual double Upgrade (const std::string &file, int mountoffset, int subunitoffset, bool force, bool loop_through_mounts)
 
bool canDowngrade (const Unit *downgradeor, int mountoffset, int subunitoffset, double &percentage, const Unit *downgradelimit, bool gen_downgrade_list=true)
 
bool Downgrade (const Unit *downgradeor, int mountoffset, int subunitoffset, double &percentage, const Unit *downgradelimit, bool gen_downgrade_list=true)
 
unsigned attackPreference () const
 
void attackPreference (unsigned char)
 
unsigned unitRole () const
 
void unitRole (unsigned char)
 
void setCombatRole (const std::string &s)
 
const std::string & getCombatRole () const
 
const std::string & getUnitRole () const
 
void setUnitRole (const std::string &s)
 
const std::string & getAttackPreference () const
 
void setAttackPreference (const std::string &s)
 
void DamageRandSys (float dam, const Vector &vec, float randum=1, float degrees=1)
 
void SetNebula (Nebula *)
 
NebulaGetNebula () const
 
const std::string & getCockpit () const
 
class CockpitGetVelocityDifficultyMult (float &) const
 
void RemoveFromSystem ()
 
void RequestPhysics ()
 
bool InCorrectStarSystem (StarSystem *)
 
virtual int nummesh () const
 
virtual void Split (int level)
 
virtual void addHalo (const char *filename, const QVector &loc, const Vector &size, const GFXColor &col, std::string halo_type, float activation)
 
std::vector< Mesh * > StealMeshes ()
 
virtual bool Explode (bool draw, float timeit)
 
void Destroy ()
 
virtual void DrawNow (const Matrix &m=identity_matrix, float lod=1000000000)
 
virtual void UpdateHudMatrix (int whichcam)
 
virtual VSSpritegetHudImage () const
 
virtual void applyTechniqueOverrides (const std::map< std::string, std::string > &overrides)
 
const std::vector< std::string > & GetDestinations () const
 
void AddDestination (const std::string &)
 
void SwitchCombatFlightMode ()
 
bool CombatMode ()
 
virtual bool TransferUnitToSystem (StarSystem *NewSystem)
 
virtual bool TransferUnitToSystem (unsigned int whichJumpQueue, class StarSystem *&previouslyActiveStarSystem, bool DoSightAndSound)
 
StarSystemgetStarSystem ()
 
const StarSystemgetStarSystem () const
 
const UnitJumpGetJumpStatus () const
 
float CourseDeviation (const Vector &OriginalCourse, const Vector &FinalCourse) const
 
ComputerGetComputerData ()
 
const ComputerViewComputerData () const
 
void ActivateJumpDrive (int destination=0)
 
void DeactivateJumpDrive ()
 
void beginElement (const std::string &name, const XMLSupport::AttributeList &attributes)
 
void endElement (const std::string &name)
 
void WriteUnit (const char *modificationname="")
 
std::string WriteUnitString ()
 
void LoadXML (const char *filename, const char *unitModifications="", std::string *xmlbuffer=NULL)
 
void LoadXML (VSFileSystem::VSFile &f, const char *unitModifications="", std::string *xmlbuffer=NULL)
 
bool AutoPilotToErrorMessage (Unit *un, bool automaticenergyrealloc, std::string &failuremessage, int recursive_level=2)
 
bool AutoPilotTo (Unit *un, bool automaticenergyrealloc)
 
Vector LocalCoordinates (Unit *un) const
 
float CloakVisible () const
 
virtual void Cloak (bool cloak)
 
void Kill (bool eraseFromSave=true, bool quitting=false)
 
bool Killed () const
 
bool IsExploding () const
 
float ExplodingProgress () const
 
float AfterburnData () const
 
void SetAfterBurn (float aft)
 
float FuelData () const
 
float WarpCapData () const
 
void SetFuel (float f)
 
float EnergyRechargeData () const
 
void SetEnergyRecharge (float enrech)
 
void SetMaxEnergy (float maxen)
 
float MaxEnergyData () const
 
float ShieldRechargeData () const
 
float EnergyData () const
 
float WarpEnergyData () const
 
float GetWarpEnergy () const
 
void DecreaseWarpEnergy (bool insystem, float time=1.0f)
 
void IncreaseWarpEnergy (bool insystem, float time=1.0f)
 
bool RefillWarpEnergy ()
 
float rSize () const
 
QVector Position () const
 
const MatrixGetTransformation () const
 
QVector LocalPosition () const
 
void SetPosition (const QVector &pos)
 
void SetCurPosition (const QVector &pos)
 Sets the cumulative transformation matrix's position...for setting up to be out in the middle of nowhere. More...
 
void SetPosAndCumPos (const QVector &pos)
 
void SetVisible (bool isvis)
 
void SetAllVisible (bool isvis)
 
void SetGlowVisible (bool isvis)
 
void Rotate (const Vector &axis)
 
void FireEngines (const Vector &Direction, float FuelSpeed, float FMass)
 
void ApplyForce (const Vector &Vforce)
 
void ApplyLocalForce (const Vector &Vforce)
 
void Accelerate (const Vector &Vforce)
 
void ApplyTorque (const Vector &Vforce, const QVector &Location)
 
void ApplyLocalTorque (const Vector &Vforce, const Vector &Location)
 
void ApplyBalancedLocalTorque (const Vector &Vforce, const Vector &Location)
 
void ApplyLocalTorque (const Vector &torque)
 
float ApplyLocalDamage (const Vector &pnt, const Vector &normal, float amt, Unit *affectedSubUnit, const GFXColor &, float phasedamage=0)
 
void ApplyNetDamage (Vector &pnt, Vector &normal, float amt, float ppercentage, float spercentage, GFXColor &color)
 
void ApplyDamage (const Vector &pnt, const Vector &normal, float amt, Unit *affectedSubUnit, const GFXColor &, void *ownerDoNotDereference, float phasedamage=0)
 
void LightShields (const Vector &pnt, const Vector &normal, float amt, const GFXColor &color)
 
float DealDamageToHullReturnArmor (const Vector &pnt, float Damage, float *&targ)
 
virtual void ArmorDamageSound (const Vector &pnt)
 
virtual void HullDamageSound (const Vector &pnt)
 
float DealDamageToHull (const Vector &pnt, float Damage)
 
Vector ClampThrust (const Vector &thrust, bool afterburn)
 
Vector MaxThrust (const Vector &thrust)
 
virtual void Thrust (const Vector &amt, bool afterburn=false)
 
void LateralThrust (float amt)
 
void VerticalThrust (float amt)
 
void LongitudinalThrust (float amt)
 
Vector ClampVelocity (const Vector &velocity, const bool afterburn)
 
Vector ClampAngVel (const Vector &vel)
 
Vector ClampTorque (const Vector &torque)
 
Vector MaxTorque (const Vector &torque)
 
void YawTorque (float amt)
 
void PitchTorque (float amt)
 
void RollTorque (float amt)
 
void Repair ()
 
void UpdatePhysics (const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
virtual void UpdatePhysics2 (const Transformation &trans, const Transformation &old_physical_state, const Vector &accel, float difficulty, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc=NULL)
 
virtual void UpdateSubunitPhysics (const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
virtual void UpdateSubunitPhysics (Unit *subunit, const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
void AddVelocity (float difficulty)
 
virtual Vector ResolveForces (const Transformation &, const Matrix &)
 
void SetOrientation (QVector q, QVector r)
 
void SetOrientation (Quaternion Q)
 
void SetOrientation (QVector p, QVector q, QVector r)
 
void GetOrientation (Vector &p, Vector &q, Vector &r) const
 
Vector GetNetAcceleration ()
 
Vector GetAcceleration () const
 
float GetMaxAccelerationInDirectionOf (const Vector &ref, bool afterburn) const
 
Vector UpCoordinateLevel (const Vector &v) const
 
Vector DownCoordinateLevel (const Vector &v) const
 
Vector ToLocalCoordinates (const Vector &v) const
 
Vector ToWorldCoordinates (const Vector &v) const
 
const VectorGetAngularVelocity () const
 
const VectorGetVelocity () const
 
Vector GetWarpVelocity () const
 
void SetVelocity (const Vector &)
 
void SetAngularVelocity (const Vector &)
 
float GetMoment () const
 
float GetMass () const
 
float GetElasticity ()
 
const LimitsLimits () const
 
void SetResolveForces (bool)
 
void setAverageGunSpeed ()
 
int LockMissile () const
 
void LockTarget (bool myboo)
 
bool TargetLocked () const
 
float TrackingGuns (bool &missileLock)
 
void ToggleWeapon (bool Missile, bool forward=true)
 
void SelectAllWeapon (bool Missile)
 
void getAverageGunSpeed (float &speed, float &grange, float &mrange) const
 
QVector PositionITTS (const QVector &firingposit, Vector firingvelocity, float gunspeed, bool smooth_itts) const
 
float FShieldData () const
 
float RShieldData () const
 
float LShieldData () const
 
float BShieldData () const
 
void ArmorData (float armor[8]) const
 
float GetHull () const
 
float GetHullPercent () const
 
void Fire (unsigned int bitmask, bool beams_target_owner=false)
 
void UnFire ()
 
void leach (float XshieldPercent, float YrechargePercent, float ZenergyPercent)
 
bool InRange (Unit *target, bool cone=true, bool cap=true) const
 
bool InRange (Unit *target, double &mm, bool cone, bool cap, bool lock) const
 
UnitTarget ()
 
UnitVelocityReference ()
 
UnitThreat ()
 
void VelocityReference (Unit *targ)
 
void TargetTurret (Unit *targ)
 
void Threaten (Unit *targ, float danger)
 
void ResetThreatLevel ()
 
float cosAngleTo (Unit *target, float &distance, float speed=0.001, float range=0.001, bool turnmargin=true) const
 
float cosAngleFromMountTo (Unit *target, float &distance) const
 
float computeLockingPercent ()
 
void Select ()
 
void Deselect ()
 
void Target (Unit *targ)
 
void setTargetFg (std::string primary, std::string secondary=std::string(), std::string tertiary=std::string())
 
void ReTargetFg (int which_target=0)
 
bool CanAddCargo (const Cargo &carg) const
 
void AddCargo (const Cargo &carg, bool sort=true)
 
int RemoveCargo (unsigned int i, int quantity, bool eraseZero=true)
 
float PriceCargo (const std::string &s)
 
CargoGetCargo (unsigned int i)
 
const CargoGetCargo (unsigned int i) const
 
void GetSortedCargoCat (const std::string &category, size_t &catbegin, size_t &catend)
 
CargoGetCargo (const std::string &s, unsigned int &i)
 
const CargoGetCargo (const std::string &s, unsigned int &i) const
 
unsigned int numCargo () const
 
std::string GetManifest (unsigned int i, Unit *scanningUnit, const Vector &original_velocity) const
 
bool SellCargo (unsigned int i, int quantity, float &creds, Cargo &carg, Unit *buyer)
 
bool SellCargo (const std::string &s, int quantity, float &creds, Cargo &carg, Unit *buyer)
 
bool BuyCargo (const Cargo &carg, float &creds)
 
bool BuyCargo (unsigned int i, unsigned int quantity, Unit *buyer, float &creds)
 
bool BuyCargo (const std::string &cargo, unsigned int quantity, Unit *buyer, float &creds)
 
void EjectCargo (unsigned int index)
 
float getEmptyCargoVolume (void) const
 
float getCargoVolume (void) const
 
float getEmptyUpgradeVolume (void) const
 
float getUpgradeVolume (void) const
 
float getHiddenCargoVolume (void) const
 
class csOPCODECollidergetCollideTree (const Vector &scale=Vector(1, 1, 1), const std::vector< struct mesh_polygon > *=NULL)
 
OrdergetAIState () const
 
void PrimeOrders ()
 
void PrimeOrdersLaunched ()
 
void PrimeOrders (Order *newAI)
 
void SetAI (Order *newAI)
 
void EnqueueAI (Order *newAI)
 
void EnqueueAIFirst (Order *newAI)
 
void LoadAIScript (const std::string &aiscript)
 
bool LoadLastPythonAIScript ()
 
bool EnqueueLastPythonAIScript ()
 
double getMinDis (const QVector &pnt)
 
void SetTurretAI ()
 
void DisableTurretAI ()
 
std::string getFullAIDescription ()
 
void eraseOrderType (unsigned int type)
 
void ExecuteAI ()
 
void SetCollisionParent (Unit *name)
 
void SetOwner (Unit *target)
 
void SetRecursiveOwner (Unit *target)
 
UnitrayCollide (const QVector &st, const QVector &end, Vector &normal, float &distance)
 
void calculate_extent (bool update_collide_queue)
 
bool Inside (const QVector &position, const float radius, Vector &normal, float &dist)
 
void UpdateCollideQueue (StarSystem *ss, CollideMap::iterator hint[NUM_COLLIDE_MAPS])
 
bool querySphere (const QVector &pnt, float err) const
 
float querySphere (const QVector &start, const QVector &end, float my_unit_radius=0) const
 
float querySphereNoRecurse (const QVector &start, const QVector &end, float my_unit_radius=0) const
 
float querySphereClickList (const QVector &st, const QVector &dir, float err) const
 
bool queryFrustum (double frustum[6][4]) const
 
virtual bool querySphereClickList (int, int, float err, Camera *activeCam)
 
bool InsideCollideTree (Unit *smaller, QVector &bigpos, Vector &bigNormal, QVector &smallpos, Vector &smallNormal, bool bigasteroid=false, bool smallasteroid=false)
 
bool jumpReactToCollision (Unit *smaller)
 
bool Collide (Unit *target)
 
void CollideAll ()
 
int CanDockWithMe (Unit *dockingunit, bool forcedock=false)
 
int ForceDock (Unit *utdw, unsigned int whichdockport)
 
void PerformDockingOperations ()
 
void FreeDockingPort (unsigned int whichport)
 
const std::vector< struct
DockingPorts > & 
DockingPortLocations () const
 
char DockedOrDocking () const
 
bool IsCleared (const Unit *dockignunit) const
 
bool isDocked (const Unit *dockingUnit) const
 
bool UnDock (Unit *unitToDockWith)
 
bool RequestClearance (Unit *dockingunit)
 
bool EndRequestClearance (Unit *dockingunit)
 
bool hasPendingClearanceRequests () const
 
int Dock (Unit *unitToDockWith)
 
void RestoreGodliness ()
 
void SetFg (Flightgroup *fg, int fg_snumber)
 
void SetFaction (int faction)
 
FlightgroupgetFlightgroup () const
 
int getFgSubnumber () const
 
const std::string getFgID ()
 
std::vector< class CargoColor > & FilterDowngradeList (std::vector< class CargoColor > &mylist, bool downgrade=true)
 
std::vector< class CargoColor > & FilterUpgradeList (std::vector< class CargoColor > &mylist)
 
bool IsBase () const
 
bool isTractorable (enum tractorHow how=tractorBoth) const
 
void setTractorability (enum tractorHow how)
 
enum tractorHow getTractorability () const
 
void setFullname (std::string name)
 
const string & getFullname () const
 
const string & getFilename () const
 
void Ref ()
 
void UnRef ()
 
UnitImages< void > & GetImageInformation ()
 
bool isStarShip () const
 
bool isPlanet () const
 
bool isJumppoint () const
 
bool isEnemy (const Unit *other) const
 
bool isFriend (const Unit *other) const
 
bool isNeutral (const Unit *other) const
 
float getRelation (const Unit *other) const
 
void TurretFAW ()
 

Static Public Member Functions

static void ProcessTerrains ()
 
- Static Public Member Functions inherited from Unit
static void ProcessDeleteQueue ()
 
static void beginElement (void *userData, const XML_Char *name, const XML_Char **atts)
 
static void endElement (void *userData, const XML_Char *name)
 
static UnitmakeMasterPartList ()
 

Public Attributes

UnitCollection satellites
 
- Public Attributes inherited from Unit
bool killed
 
bool zapped
 
int ucref
 
UnitSoundssound
 
StringPool::Reference name
 
StringPool::Reference filename
 
ClientState old_state
 
unsigned short damages
 
UnitCollection SubUnits
 
std::vector< Mountmounts
 
float gunspeed
 
float gunrange
 
float missilerange
 
bool inertialmode
 
char turretstatus
 
bool autopilotactive
 
class Unit::graphic_options graphicOptions
 
std::vector< Mesh * > meshdata
 
StarSystemactiveStarSystem
 
class Unit::Computer computer
 
struct Unit::UnitJump jump
 
Pilotpilot
 
bool selected
 
XMLxml
 
void * owner
 
unsigned int sim_atom_multiplier
 
unsigned int predicted_priority
 
Transformation prev_physical_state
 
Transformation curr_physical_state
 
unsigned int cur_sim_queue_slot
 
unsigned int last_processed_sqs
 
bool do_subunit_scheduling
 
enum Unit::schedulepriorityenum schedule_priority
 
Matrix cumulative_transformation_matrix
 
Transformation cumulative_transformation
 
Vector cumulative_velocity
 
Vector NetForce
 
Vector NetLocalForce
 
Vector NetTorque
 
Vector NetLocalTorque
 
Vector AngularVelocity
 
Vector Velocity
 
UnitImages< void > * pImage
 
float specInterdiction
 
float Mass
 
float HeatSink
 
class Unit::Limits limits
 
int cloaking
 
int cloakmin
 
float radial_size
 
Vector corner_min
 
Vector corner_max
 
bool resolveforces
 
Armor armor
 
Shield shield
 
float hull
 
float energy
 
Orderaistate
 
CollideMap::iterator location [2]
 
struct collideTreescolTrees
 
unsigned char docked
 
int faction
 
MeshAnimationpMeshAnimation
 

Protected Member Functions

 Planet ()
 default constructor - only to be called by UnitFactory More...
 
 Planet (QVector x, QVector y, float vely, const Vector &rotvel, float pos, float gravity, float radius, const string &filename, const string &technique, const string &unitname, const vector< string > &dest, const QVector &orbitcent, Unit *parent, int faction, string fullname, bool inside_out=false, unsigned int lights_num=0)
 constructor - only to be called by UnitFactory More...
 
void InitPlanet (QVector x, QVector y, float vely, const Vector &rotvel, float pos, float gravity, float radius, const string &filename, const string &technique, const string &unitname, const vector< string > &dest, const QVector &orbitcent, Unit *parent, int faction, string fullname, bool inside_out, unsigned int lights_num)
 
 Planet (std::vector< Mesh * >m, bool b, int i)
 
- Protected Member Functions inherited from Unit
 Unit (const Unit &)
 
Unitoperator= (const Unit &)
 
virtual float ExplosionRadius ()
 
void ActivateGuns (const weapon_info *, bool Missile)
 cycles through the loop twice turning on all matching to ms weapons of size or after size More...
 
float MaxShieldVal () const
 
void RegenShields ()
 
virtual float DealDamageToShield (const Vector &pnt, float &Damage)
 
bool ShieldUp (const Vector &) const
 
void SortCargo ()
 

Protected Attributes

PlanetaryTransform * terraintrans
 
Atmosphereatmosphere
 
ContinuousTerrainterrain
 
Vector TerrainUp
 
Vector TerrainH
 
bool inside
 
bool atmospheric
 
float radius
 
float gravity
 
UnitCollection insiders
 
std::vector< intlights
 
- Protected Attributes inherited from Unit
StringPool::Reference csvRow
 
bool networked
 
ObjSerial serial
 
Vector net_accel
 
unsigned char attack_preference
 
unsigned char unit_role
 
Nebulanebula
 
float shieldtight
 
float fuel
 
float afterburnenergy
 
int afterburntype
 
float Momentofinertia
 
Vector SavedAccel
 
unsigned char invisible
 
float maxhull
 
float recharge
 
float maxenergy
 
float maxwarpenergy
 
float warpenergy
 
StringPool::Reference target_fgid [3]
 
Flightgroupflightgroup
 
int flightgroup_subnumber
 
std::string fullname
 

Friends

class UnitFactory
 
class Planet::PlanetIterator
 
class PlanetaryOrbit
 

Additional Inherited Members

- Public Types inherited from Unit
enum  DAMAGES {
  NO_DAMAGE =0x00, SHIELD_DAMAGED =0x01, COMPUTER_DAMAGED =0x02, MOUNT_DAMAGED =0x04,
  CARGOFUEL_DAMAGED =0x08, JUMP_DAMAGED =0x10, CLOAK_DAMAGED =0x20, LIMITS_DAMAGED =0x40,
  ARMOR_DAMAGED =0x80
}
 
enum  schedulepriorityenum { scheduleDefault, scheduleAField, scheduleRoid }
 
enum  COLLIDELOCATIONTYPES { UNIT_ONLY =0, UNIT_BOLT =1, NUM_COLLIDE_MAPS =2 }
 
enum  DOCKENUM { NOT_DOCKED =0x0, DOCKED_INSIDE =0x1, DOCKED =0x2, DOCKING_UNITS =0x4 }
 
enum  tractorHow { tractorImmune =0, tractorPush =1, tractorIn =2, tractorBoth =3 }
 
- Protected Types inherited from Unit
enum  INVIS { DEFAULTVIS =0x0, INVISGLOW =0x1, INVISUNIT =0x2, INVISCAMERA =0x4 }
 
- Static Protected Member Functions inherited from Unit
static std::string massSerializer (const struct XMLType &input, void *mythis)
 
static std::string cargoSerializer (const struct XMLType &input, void *mythis)
 
static std::string mountSerializer (const struct XMLType &input, void *mythis)
 
static std::string shieldSerializer (const struct XMLType &input, void *mythis)
 
static std::string subunitSerializer (const struct XMLType &input, void *mythis)
 

Detailed Description

Definition at line 45 of file planet_generic.h.

Constructor & Destructor Documentation

Planet::Planet ( )
protected

default constructor - only to be called by UnitFactory

Definition at line 360 of file planet_generic.cpp.

References atmospheric, f, inside, Shield::number, Unit::shield, and terraintrans.

360  :
361  Unit( 0 )
362  , radius( 0.0f )
363  , satellites()
364 {
365  inside = false;
366  //Not needed as Unit default constructor is called and already does Init
367  //Init();
368  terraintrans = NULL;
369  atmospheric = false;
370  //Force shields to 0
371  memset( &(this->shield), 0, sizeof (Unit::shield) );
372  this->shield.number = 2;
373 }
Planet::Planet ( QVector  x,
QVector  y,
float  vely,
const Vector rotvel,
float  pos,
float  gravity,
float  radius,
const string &  filename,
const string &  technique,
const string &  unitname,
const vector< string > &  dest,
const QVector orbitcent,
Unit parent,
int  faction,
string  fullname,
bool  inside_out = false,
unsigned int  lights_num = 0 
)
protected

constructor - only to be called by UnitFactory

Definition at line 471 of file planet_generic.cpp.

References atmospheric, Unit::corner_max, Unit::corner_min, i, InitPlanet(), inside, lights, Unit::meshdata, Shield::number, Unit::radial_size, radius, Unit::shield, and terraintrans.

488 {
489  inside = false;
490  terraintrans = NULL;
491  atmospheric = false;
492  this->InitPlanet( x, y, vely, rotvel,
493  pos,
494  gravity, radius,
495  filename, technique, unitname,
496  dest,
497  orbitcent, parent,
498  faction, fullname,
499  inside_out,
500  lights_num );
501  corner_min.i = corner_min.j = corner_min.k = -this->radius;
502  corner_max.i = corner_max.j = corner_max.k = this->radius;
503  this->radial_size = this->radius;
504  for (unsigned int i = 0; i < lights_num; i++) {
505  int l = -1;
506  lights.push_back( l );
507  }
508  //Force shields to 0
509  /*
510  * this->shield.number=2;
511  * this->shield.recharge=0;
512  * this->shield.shield2fb.frontmax=0;
513  * this->shield.shield2fb.backmax=0;
514  * this->shield.shield2fb.front=0;
515  * this->shield.shield2fb.back=0;
516  */
517  memset( &(this->shield), 0, sizeof (Unit::shield) );
518  this->shield.number = 2;
519  if ( meshdata.empty() ) meshdata.push_back( NULL );
520 }
Planet::Planet ( std::vector< Mesh * >  m,
bool  b,
int  i 
)
inlineprotected

Definition at line 99 of file planet_generic.h.

99 : Unit( m, b, i ) {}
Planet::~Planet ( )
virtual

Definition at line 529 of file planet_generic.cpp.

References Unit::cumulative_transformation_matrix, and terraintrans.

530 {
531  if (terraintrans) {
532  Matrix *tmp = new Matrix();
534  //terraintrans->SetTransformation (tmp);
535  }
536 }

Member Function Documentation

const std::vector< int >& Planet::activeLights ( )
inline

Definition at line 256 of file planet_generic.h.

References lights.

257  {
258  return lights;
259  }
virtual void Planet::AddAtmosphere ( const std::string &  texture,
float  radius,
BLENDFUNC  blendSrc,
BLENDFUNC  blendDst,
bool  inside_out 
)
inlinevirtual

Definition at line 105 of file planet_generic.h.

109  {}
virtual void Planet::AddCity ( const std::string &  texture,
float  radius,
int  numwrapx,
int  numwrapy,
BLENDFUNC  blendSrc,
BLENDFUNC  blendDst,
bool  inside_out = false,
bool  reverse_normals = true 
)
inlinevirtual

Definition at line 120 of file planet_generic.h.

127  {}
virtual void Planet::AddFog ( const vector< AtmosphericFogMesh > &  meshes,
bool  optical_illusion 
)
inlinevirtual

Definition at line 104 of file planet_generic.h.

104 {}
virtual void Planet::AddRing ( const std::string &  texture,
float  iradius,
float  oradius,
const QVector r,
const QVector s,
int  slices,
int  numwrapx,
int  numwrapy,
BLENDFUNC  blendSrc,
BLENDFUNC  blendDst 
)
inlinevirtual

Definition at line 110 of file planet_generic.h.

119  {}
void Planet::AddSatellite ( Unit orbiter)

Definition at line 286 of file planet_generic.cpp.

References UnitCollection::prepend(), satellites, and Unit::SetOwner().

287 {
288  satellites.prepend( orbiter );
289  orbiter->SetOwner( this );
290 }
Vector Planet::AddSpaceElevator ( const std::string &  name,
const std::string &  faction,
char  direction 
)
virtual

Definition at line 213 of file planet_generic.cpp.

References Mesh::corner_max(), Mesh::corner_min(), UnitFactory::createUnit(), UnitImages< BOGUS >::dockingports, GetElMeshName(), FactionUtil::GetFactionIndex(), Matrix::getQ(), Matrix::getR(), DockingPorts::Type::INSIDE, Mesh::LoadMesh(), Unit::meshdata, Matrix::p, Unit::pImage, UnitCollection::prepend(), radius, Unit::rSize(), Unit::SetOrientation(), Unit::SetPosition(), Unit::SetRecursiveOwner(), Unit::shield, Unit::SubUnits, and Vector.

Referenced by GamePlanet::AddSpaceElevator().

214 {
215  Vector dir, scale;
216  switch (direction)
217  {
218  case 'u':
219  dir.Set( 0, 1, 0 );
220  break;
221  case 'd':
222  dir.Set( 0, -1, 0 );
223  break;
224  case 'l':
225  dir.Set( -1, 0, 0 );
226  break;
227  case 'r':
228  dir.Set( 1, 0, 0 );
229  break;
230  case 'b':
231  dir.Set( 0, 0, -1 );
232  break;
233  default:
234  dir.Set( 0, 0, 1 );
235  break;
236  }
237  Matrix ElevatorLoc( Vector( dir.j, dir.k, dir.i ), dir, Vector( dir.k, dir.i, dir.j ) );
238  scale = dir*radius+Vector( 1, 1, 1 )-dir;
239  Mesh *shield = meshdata.back();
240  string elevator_mesh = GetElMeshName( name, faction, direction ); //filename
241  Mesh *tmp = meshdata.back() = Mesh::LoadMesh( elevator_mesh.c_str(),
242  scale,
245  NULL );
246 
247  meshdata.push_back( shield );
248  {
249  //subunit computations
250  Vector mn( tmp->corner_min() );
251  Vector mx( tmp->corner_max() );
252  if (dir.Dot( Vector( 1, 1, 1 ) ) > 0)
253  ElevatorLoc.p.Set( dir.i*mx.i, dir.j*mx.j, dir.k*mx.k );
254  else
255  ElevatorLoc.p.Set( -dir.i*mn.i, -dir.j*mn.j, -dir.k*mn.k );
256  Unit *un = UnitFactory::createUnit( name.c_str(), true, FactionUtil::GetFactionIndex( faction ), "", NULL );
257  if (pImage->dockingports.back().GetPosition().MagnitudeSquared() < 10)
258  pImage->dockingports.clear();
259  pImage->dockingports.push_back( DockingPorts( ElevatorLoc.p, un->rSize()*1.5, 0, DockingPorts::Type::INSIDE ) );
260  un->SetRecursiveOwner( this );
261  un->SetOrientation( ElevatorLoc.getQ(), ElevatorLoc.getR() );
262  un->SetPosition( ElevatorLoc.p );
263  SubUnits.prepend( un );
264  }
265  return dir;
266 }
Unit * Planet::beginElement ( QVector  x,
QVector  y,
float  vely,
const Vector rotvel,
float  pos,
float  gravity,
float  radius,
const string &  filename,
const string &  technique,
const string &  unitname,
BLENDFUNC  blendsrc,
BLENDFUNC  blenddst,
const vector< string > &  dest,
int  level,
const GFXMaterial ourmat,
const std::vector< GFXLightLocal > &  ligh,
bool  isunit,
int  faction,
string  fullname,
bool  inside_out 
)

Definition at line 295 of file planet_generic.cpp.

References UnitCollection::createIterator(), UnitFactory::createPlanet(), UnitFactory::createUnit(), Unit::faction, getStaticBaseFlightgroup(), Flightgroup::nr_ships, PlanetaryOrbit, PLANETPTR, UnitCollection::prepend(), QVector, satellites, ScaleJumpRadius(), Unit::setFullname(), Unit::SetOwner(), and VSFileSystem::vs_fprintf().

315 {
316  //this function is OBSOLETE
317  Unit *un = NULL;
318  if (level > 2) {
319  un_iter satiterator = satellites.createIterator();
320  assert( *satiterator );
321  if ( (*satiterator)->isUnit() == PLANETPTR ) {
322  un = ( (Planet*) (*satiterator) )->beginElement( x, y, vely, rotvel, pos,
323  gravity, radius,
324  filename, technique, unitname,
325  blendSrc, blendDst,
326  dest,
327  level-1,
328  ourmat, ligh,
329  isunit,
330  faction, fullname,
331  inside_out );
332  } else {
333  VSFileSystem::vs_fprintf( stderr, "Planets are unable to orbit around units" );
334  }
335  } else {
336  if (isunit == true) {
337  Unit *sat_unit = NULL;
339  satellites.prepend( sat_unit = UnitFactory::createUnit( filename.c_str(), false, faction, "", fg, fg->nr_ships-1 ) );
340  sat_unit->setFullname( fullname );
341  un = sat_unit;
342  un_iter satiterator( satellites.createIterator() );
343  (*satiterator)->SetAI( new PlanetaryOrbit( *satiterator, vely, pos, x, y, QVector( 0, 0, 0 ), this ) );
344  (*satiterator)->SetOwner( this );
345  } else {
346  Planet *p;
347  if (dest.size() != 0)
349  satellites.prepend( p = UnitFactory::createPlanet( x, y, vely, rotvel, pos, gravity, radius,
350  filename, technique, unitname,
351  blendSrc, blendDst, dest,
352  QVector( 0, 0, 0 ), this, ourmat, ligh, faction, fullname, inside_out ) );
353  un = p;
354  p->SetOwner( this );
355  }
356  }
357  return un;
358 }
PlanetIterator Planet::createIterator ( )
inline

Definition at line 243 of file planet_generic.h.

244  {
245  return PlanetIterator( this );
246  }
virtual void Planet::DisableLights ( )
inlinevirtual

Definition at line 128 of file planet_generic.h.

128 {}
virtual void Planet::Draw ( const Transformation quat = identity_transformation,
const Matrix m = identity_matrix 
)
inlinevirtual

Reimplemented from Unit.

Definition at line 162 of file planet_generic.h.

162 {}
virtual void Planet::DrawTerrain ( )
inlinevirtual

Definition at line 163 of file planet_generic.h.

Referenced by GamePlanet::ProcessTerrains().

163 {}
virtual void Planet::EnableLights ( )
inlinevirtual

Definition at line 129 of file planet_generic.h.

129 {}
void Planet::endElement ( )

Definition at line 268 of file planet_generic.cpp.

268 {}
virtual Atmosphere* Planet::getAtmosphere ( )
inlinevirtual

Definition at line 176 of file planet_generic.h.

177  {
178  return NULL;
179  }
string Planet::getCargoUnitName ( ) const
inline

Definition at line 132 of file planet_generic.h.

References Unit::getFullname().

Referenced by getHumanReadablePlanetType(), and InitPlanet().

133  {
134  return getFullname();
135  }
string Planet::getHumanReadablePlanetType ( ) const

Definition at line 522 of file planet_generic.cpp.

References _Universe, getCargoUnitName(), Universe::getGalaxy(), and GalaxyXML::Galaxy::getPlanetNameFromTexture().

523 {
524  //static std::map<std::string, std::string> planetTypes (readPlanetTypes("planet_types.xml"));
525  //return planetTypes[getCargoUnitName()];
527 }
virtual ContinuousTerrain* Planet::getTerrain ( PlanetaryTransform *&  t)
inlinevirtual

Definition at line 171 of file planet_generic.h.

172  {
173  return NULL;
174  }
Planet * Planet::GetTopPlanet ( int  level)

Definition at line 270 of file planet_generic.cpp.

References UnitCollection::createIterator(), PLANETPTR, satellites, and VSFileSystem::vs_fprintf().

271 {
272  if (level > 2) {
273  un_iter satiterator = satellites.createIterator();
274  assert( *satiterator );
275  if ( (*satiterator)->isUnit() == PLANETPTR ) {
276  return ( (Planet*) (*satiterator) )->GetTopPlanet( level-1 );
277  } else {
278  VSFileSystem::vs_fprintf( stderr, "Planets are unable to orbit around units" );
279  return NULL;
280  }
281  } else {
282  return this;
283  }
284 }
bool Planet::hasLights ( )
inline

Definition at line 252 of file planet_generic.h.

References lights.

Referenced by Radar::Track::IdentifyType(), and isAtmospheric().

253  {
254  return !lights.empty();
255  }
void Planet::InitPlanet ( QVector  x,
QVector  y,
float  vely,
const Vector rotvel,
float  pos,
float  gravity,
float  radius,
const string &  filename,
const string &  technique,
const string &  unitname,
const vector< string > &  dest,
const QVector orbitcent,
Unit parent,
int  faction,
string  fullname,
bool  inside_out,
unsigned int  lights_num 
)
protected

Definition at line 375 of file planet_generic.cpp.

References Unit::AddDestination(), atmosphere, atmospheric, UnitImages< BOGUS >::cargo, UnitImages< BOGUS >::CargoVolume, Unit::colTrees, DockingPorts::Type::CONNECTED_OUTSIDE, UnitFactory::createUnit(), Unit::cumulative_transformation, Unit::curr_physical_state, UnitImages< BOGUS >::dockingports, Unit::faction, Unit::fullname, getCargoUnitName(), FactionUtil::GetFactionName(), Unit::GetImageInformation(), FactionUtil::GetNeutralFaction(), FactionUtil::GetPlanetFaction(), VegaConfig::getVariable(), gravity, Unit::hull, i, Unit::Init(), inside, Unit::Kill(), Unit::killed, UniverseUtil::LookupUnitStat(), M_PI, Unit::Mass, Unit::maxwarpenergy, Unit::name, XMLSupport::parse_bool(), XMLSupport::parse_float(), UnitImages< BOGUS >::pHudImage, Unit::pImage, PlanetaryOrbit, Transformation::position, UnitCollection::prepend(), Unit::prev_physical_state, radius, Unit::SetAI(), Unit::SetAngularVelocity(), Unit::setFullname(), Unit::SetRecursiveOwner(), Unit::SetTurretAI(), Unit::SubUnits, terrain, terraintrans, UnitImages< BOGUS >::UpgradeVolume, Vector, vs_config, Unit::WarpCapData(), and x.

Referenced by Planet().

392 {
393  atmosphere = NULL;
394  terrain = NULL;
395  static float bodyradius = XMLSupport::parse_float( vs_config->getVariable( "graphics", "star_body_radius", ".33" ) );
396  if (lights_num)
397  radius *= bodyradius;
398  inside = false;
400  Init();
401  //static int neutralfaction=FactionUtil::GetFaction("neutral");
402  //this->faction = neutralfaction;
403  killed = false;
404  bool notJumppoint = dest.empty();
405  for (unsigned int i = 0; i < dest.size(); ++i)
406  AddDestination( dest[i] );
407  //name = "Planet - ";
408  //name += textname;
409  name = fullname;
410  this->fullname = name;
411  this->radius = radius;
412  this->gravity = gravity;
413  static float densityOfRock = XMLSupport::parse_float( vs_config->getVariable( "physics", "density_of_rock", "3" ) );
414  static float densityOfJumpPoint =
415  XMLSupport::parse_float( vs_config->getVariable( "physics", "density_of_jump_point", "100000" ) );
416  //static float massofplanet = XMLSupport::parse_float(vs_config->getVariable("physics","mass_of_planet","10000000"));
417  hull = (4./3)*M_PI*radius*radius*radius*(notJumppoint ? densityOfRock : densityOfJumpPoint);
418  this->Mass = (4./3)*M_PI*radius*radius*radius*( notJumppoint ? densityOfRock : (densityOfJumpPoint/100000) );
419  SetAI( new PlanetaryOrbit( this, vely, pos, x, y, orbitcent, parent ) ); //behavior
420  terraintrans = NULL;
421 
422  colTrees = NULL;
423  SetAngularVelocity( rotvel );
424  // The docking port is 20% bigger than the planet
425  static float planetdockportsize = XMLSupport::parse_float( vs_config->getVariable( "physics", "planet_port_size", "1.2" ) );
426  static float planetdockportminsize =
427  XMLSupport::parse_float( vs_config->getVariable( "physics", "planet_port_min_size", "300" ) );
428  if ( (!atmospheric) && notJumppoint ) {
429  float dock = radius*planetdockportsize;
430  if (dock-radius < planetdockportminsize)
431  dock = radius+planetdockportminsize;
432  pImage->dockingports.push_back( DockingPorts( Vector( 0, 0, 0 ), dock, 0, DockingPorts::Type::CONNECTED_OUTSIDE ) );
433  }
434  string tempname = unitname.empty() ? ::getCargoUnitName( filename.c_str() ) : unitname;
435  setFullname( tempname );
436 
437  int tmpfac = faction;
438  if (UniverseUtil::LookupUnitStat( tempname, FactionUtil::GetFactionName( faction ), "Cargo_Import" ).length() == 0)
440  Unit *un = UnitFactory::createUnit( tempname.c_str(), true, tmpfac );
441 
442  static bool smartplanets = XMLSupport::parse_bool( vs_config->getVariable( "physics", "planets_can_have_subunits", "false" ) );
443  if ( un->name != string( "LOAD_FAILED" ) ) {
447  VSSprite *tmp = pImage->pHudImage;
449  un->GetImageInformation().pHudImage = tmp;
450  maxwarpenergy = un->WarpCapData();
451  if (smartplanets) {
452  SubUnits.prepend( un );
453  un->SetRecursiveOwner( this );
454  this->SetTurretAI();
455  un->SetTurretAI(); //allows adding planetary defenses, also allows launching fighters from planets, interestingly
456  un->name = "Defense_grid";
457  }
458  static bool neutralplanets =
459  XMLSupport::parse_bool( vs_config->getVariable( "physics", "planets_always_neutral", "true" ) );
460  if (neutralplanets) {
461  static int neutralfaction = FactionUtil::GetNeutralFaction();
462  this->faction = neutralfaction;
463  } else {
464  this->faction = faction;
465  }
466  }
467  if ( un->name == string( "LOAD_FAILED" ) || (!smartplanets) )
468  un->Kill();
469 }
bool Planet::isAtmospheric ( )
inline

Definition at line 247 of file planet_generic.h.

References atmospheric, and hasLights().

Referenced by Radar::Track::IdentifyType().

248  {
249  return hasLights() || atmospheric;
250  }
virtual enum clsptr Planet::isUnit ( ) const
inlinevirtual

Reimplemented from Unit.

Definition at line 158 of file planet_generic.h.

References PLANETPTR.

159  {
160  return PLANETPTR;
161  }
void Planet::Kill ( bool  erasefromsave = false)
virtual

Definition at line 538 of file planet_generic.cpp.

References UnitCollection::clear(), UnitCollection::createIterator(), insiders, Unit::Kill(), satellites, and Unit::SetAI().

539 {
540  un_iter iter;
541  Unit *tmp;
542  for (iter = satellites.createIterator();
543  (tmp = *iter);
544  ++iter)
545  tmp->SetAI( new Order );
546  /* probably not FIXME...right now doesn't work on paged out systems... not a big deal */
547  satellites.clear();
548  insiders.clear();
549  Unit::Kill( erasefromsave );
550 }
static void Planet::ProcessTerrains ( )
inlinestatic

Definition at line 164 of file planet_generic.h.

164 {}
virtual void Planet::reactToCollision ( Unit smaller,
const QVector biglocation,
const Vector bignormal,
const QVector smalllocation,
const Vector smallnormal,
float  dist 
)
inlinevirtual

Reimplemented from Unit.

Definition at line 180 of file planet_generic.h.

References Unit::reactToCollision().

186  {
187  this->Unit::reactToCollision( smaller, biglocation, bignormal, smalllocation, smallnormal, dist );
188  }
virtual void Planet::setAtmosphere ( Atmosphere )
inlinevirtual

Definition at line 175 of file planet_generic.h.

175 {}
virtual PlanetaryTransform* Planet::setTerrain ( ContinuousTerrain ,
float  ratiox,
int  numwraps,
float  scaleatmos 
)
inlinevirtual

Definition at line 167 of file planet_generic.h.

168  {
169  return NULL;
170  }

Friends And Related Function Documentation

friend class Planet::PlanetIterator
friend

Definition at line 261 of file planet_generic.h.

friend class PlanetaryOrbit
friend

Definition at line 262 of file planet_generic.h.

Referenced by beginElement(), and InitPlanet().

friend class UnitFactory
friend

Definition at line 98 of file planet_generic.h.

Member Data Documentation

Atmosphere* Planet::atmosphere
protected

Definition at line 49 of file planet_generic.h.

Referenced by InitPlanet().

bool Planet::atmospheric
protected

Definition at line 54 of file planet_generic.h.

Referenced by InitPlanet(), isAtmospheric(), and Planet().

float Planet::gravity
protected

Definition at line 56 of file planet_generic.h.

Referenced by InitPlanet().

bool Planet::inside
protected

Definition at line 53 of file planet_generic.h.

Referenced by InitPlanet(), and Planet().

UnitCollection Planet::insiders
protected

Definition at line 57 of file planet_generic.h.

Referenced by Kill().

std::vector< int > Planet::lights
protected

Definition at line 58 of file planet_generic.h.

Referenced by activeLights(), hasLights(), and Planet().

float Planet::radius
protected

Definition at line 55 of file planet_generic.h.

Referenced by AddSpaceElevator(), InitPlanet(), and Planet().

UnitCollection Planet::satellites
ContinuousTerrain* Planet::terrain
protected

Definition at line 50 of file planet_generic.h.

Referenced by InitPlanet().

Vector Planet::TerrainH
protected

Definition at line 52 of file planet_generic.h.

PlanetaryTransform* Planet::terraintrans
protected

Definition at line 48 of file planet_generic.h.

Referenced by InitPlanet(), Planet(), and ~Planet().

Vector Planet::TerrainUp
protected

Definition at line 51 of file planet_generic.h.


The documentation for this class was generated from the following files: