Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <halo_system.h>
Public Member Functions | |
virtual | ~HaloSystem () |
HaloSystem () | |
QVector & | HaloLoc (unsigned int i) |
unsigned int | numhalo () |
unsigned int | AddHalo (const char *filename, const QVector &loc, const Vector &size, const GFXColor &col, std::string halo_type, float activation_accel) |
bool | ShouldDraw (const Matrix &trans, const Vector &velocity, const Vector &accel, float maxaccel, float maxvelocity) |
void | Draw (const Matrix &trans, const Vector &scale, int halo_alpha, float nebdist, float hullpercentage, const Vector &velocity, const Vector &accel, float maxaccel, float maxvelocity, int faction) |
void | SetPosition (unsigned int which, const QVector &loc) |
void | SetSize (unsigned int which, const Vector &scale) |
int | NumHalos () const |
Definition at line 23 of file halo_system.h.
|
virtual |
HaloSystem::HaloSystem | ( | ) |
unsigned int HaloSystem::AddHalo | ( | const char * | filename, |
const QVector & | loc, | ||
const Vector & | size, | ||
const GFXColor & | col, | ||
std::string | halo_type, | ||
float | activation_accel | ||
) |
Definition at line 114 of file halo_system.cpp.
References FactionUtil::GetNeutralFaction(), VegaConfig::getVariable(), Mesh::LoadMesh(), MIPMAP, FactionUtil::neutralfac, XMLSupport::parse_float(), CAR::type_map(), Vector, and vs_config.
void HaloSystem::Draw | ( | const Matrix & | trans, |
const Vector & | scale, | ||
int | halo_alpha, | ||
float | nebdist, | ||
float | hullpercentage, | ||
const Vector & | velocity, | ||
const Vector & | accel, | ||
float | maxaccel, | ||
float | maxvelocity, | ||
int | faction | ||
) |
Definition at line 198 of file halo_system.cpp.
References CAR::BRAKE, DoParticles(), Mesh::Draw(), StarSystemGent::faction, CAR::FORWARD_BLINKEN, GetElapsedTime(), Matrix::getR(), VegaConfig::getVariable(), HaloAccelSmooth(), CAR::HEADLIGHTS, i, int, CAR::LEFT_BLINKEN, CAR::LEFTBLINK, CAR::ON_NO_BLINKEN, Matrix::p, XMLSupport::parse_bool(), XMLSupport::parse_float(), CAR::REVERSE, CAR::RIGHT_BLINKEN, CAR::RIGHTBLINK, Mesh::rSize(), CAR::RUNNINGLIGHTS, ScaleMatrix(), CAR::SIREN, CAR::SIREN_BLINKEN, UniverseUtil::sqrt(), test, Transform(), Vector, and vs_config.
Definition at line 38 of file halo_system.h.
|
inline |
Definition at line 42 of file halo_system.h.
|
inline |
Definition at line 67 of file halo_system.h.
Definition at line 147 of file halo_system.cpp.
bool HaloSystem::ShouldDraw | ( | const Matrix & | trans, |
const Vector & | velocity, | ||
const Vector & | accel, | ||
float | maxaccel, | ||
float | maxvelocity | ||
) |
Definition at line 177 of file halo_system.cpp.
References Matrix::getR(), VegaConfig::getVariable(), HaloAccelSmooth(), XMLSupport::parse_bool(), Vector, and vs_config.