Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "vdu.h"
#include "cmd/unit_util.h"
#include "hud.h"
#include "vs_globals.h"
#include "cockpit.h"
#include "cmd/script/mission.h"
#include "cmd/script/flightgroup.h"
#include "cmd/script/msgcenter.h"
#include "cmd/images.h"
#include "cmd/planet.h"
#include "cmd/beam.h"
#include "config_xml.h"
#include "xml_support.h"
#include "gfx/animation.h"
#include "gfx/vsimage.h"
#include "galaxy_gen.h"
#include "universe_util.h"
#include "networking/netclient.h"
#include "vsfilesystem.h"
Go to the source code of this file.
Classes | |
struct | colorstring |
struct | retString128 |
Macros | |
#define | MangleString(a, b) (a) |
#define | RETURN_STATIC_SPRITE(name) |
#define | REPORTITEM(percent_working, max_functionality, print_percent_working, component_string) |
#define | REPORTINTEGRATED(which, which_key, which_name_default) |
#define | REPORTINTEGRATEDFLAG(which, which_key, which_name_default) |
Variables | |
const std::string | vdu_modes [] |
ALERT to change must change enum in class. More... | |
const char * | DamagedCategory |
static char | suc_col_str [8] = "#000000" |
static const char | suc_gt_plusone [8] = "#00FF00" |
static const char | suc_gt_minusone [8] = "#FF0000" |
Definition at line 376 of file vdu.cpp.
Referenced by VDU::Draw().
#define REPORTINTEGRATED | ( | which, | |
which_key, | |||
which_name_default | |||
) |
#define REPORTINTEGRATEDFLAG | ( | which, | |
which_key, | |||
which_name_default | |||
) |
#define REPORTITEM | ( | percent_working, | |
max_functionality, | |||
print_percent_working, | |||
component_string | |||
) |
#define RETURN_STATIC_SPRITE | ( | name) |
Definition at line 681 of file vdu.cpp.
Referenced by getJumpImage(), getNavImage(), getPlanetImage(), getSunImage(), getTargetDualShield(), and getTargetQuadShield().
Definition at line 156 of file vdu.cpp.
References GFXColor::a, GFXColor::b, GFXColor::g, and GFXColor::r.
Referenced by MountColor().
colorstring colToString | ( | GFXColor | col) |
Definition at line 170 of file vdu.cpp.
References b, GFXColor::b, GFXColor::g, g, GFXColor::r, colorstring::str, and tohexdigit().
Definition at line 722 of file vdu.cpp.
References Unit::isUnit(), Magnitude(), PLANETPTR, Unit::Position(), and Unit::rSize().
|
static |
Definition at line 1200 of file vdu.cpp.
References weapon_info::CAPSHIPHEAVYMISSILE, g_game, GFXBegin(), GFXEnd(), GFXLINE, GFXPOINT, GFXPointSize(), GFXVertex3d(), GFXVertexf(), weapon_info::HEAVY, weapon_info::HEAVYMISSILE, weapon_info::LIGHT, weapon_info::MEDIUM, weapon_info::NOWEAP, weapon_info::SPECIAL, weapon_info::SPECIALMISSILE, game_data_t::x_resolution, and game_data_t::y_resolution.
|
static |
Definition at line 236 of file vdu.cpp.
References ALWAYS, CULLFACE, VSSprite::DrawHere(), getDamageColor(), VSSprite::GetPosition(), VSSprite::GetSize(), VSSprite::getTexture(), VegaConfig::getVariable(), GFXAlphaTest(), GFXBegin(), GFXBlendMode(), GFXColorf(), GFXDisable(), GFXEnable(), GFXEnd(), GFXQUAD, GFXTexCoord2f(), GFXVertexf(), GREATER, INVSRCALPHA, Texture::MakeActive(), ONE, XMLSupport::parse_bool(), XMLSupport::parse_float(), VSSprite::SetPosition(), VSSprite::SetSize(), SRCALPHA, Vector, vs_config, and ZERO.
Referenced by DrawShield().
Definition at line 1726 of file vdu.cpp.
References active_missions, TextPlane::bgcol, TextPlane::Draw(), GetColorFromSuccess(), VegaConfig::getVariable(), j, mission_name, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::tostring(), and vs_config.
Referenced by NavigationSystem::DrawObjectives().
|
static |
Definition at line 401 of file vdu.cpp.
References GFXColor::a, DrawHUDSprite(), f, Unit::getHudImage(), Unit::GetHullPercent(), VSSprite::GetPosition(), VSSprite::GetSize(), VegaConfig::getVariable(), GFXBegin(), GFXBlendMode(), GFXColor4f(), GFXColorf(), GFXDisable(), GFXEnable(), GFXEnd(), GFXLINE, GFXPopBlendMode(), GFXPushBlendMode(), GFXVertex3d(), INVSRCALPHA, mymax(), mymin, XMLSupport::parse_bool(), XMLSupport::parse_float(), SMOOTH, SRCALPHA, TEXTURE0, vs_config, x, and y.
|
inline |
Definition at line 1696 of file vdu.cpp.
References int, printHex(), suc_col_str, suc_gt_minusone, and suc_gt_plusone.
Referenced by DrawObjectivesTextPlane().
Definition at line 212 of file vdu.cpp.
References VegaConfig::getColor(), and vs_config.
Referenced by DrawHUDSprite().
VSSprite* getJumpImage | ( | ) |
Definition at line 702 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
VSSprite* getNavImage | ( | ) |
Definition at line 717 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
VSSprite* getPlanetImage | ( | ) |
Definition at line 712 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
VSSprite* getSunImage | ( | ) |
Definition at line 707 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
VSSprite* getTargetDualShield | ( | ) |
Definition at line 697 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
VSSprite* getTargetQuadShield | ( | ) |
Definition at line 692 of file vdu.cpp.
References RETURN_STATIC_SPRITE.
string getUnitNameAndFgNoBase | ( | Unit * | target) |
Definition at line 60 of file vdu.cpp.
References Unit::getFgSubnumber(), Unit::getFlightgroup(), Unit::getFullname(), VegaConfig::getVariable(), Unit::isUnit(), Flightgroup::name, Unit::name, Network, XMLSupport::parse_bool(), PLANETPTR, reformatName(), XMLSupport::tostring(), UNITPTR, and vs_config.
Referenced by drawdescription(), and CockpitKeys::TextMessageCallback().
Definition at line 1562 of file vdu.cpp.
References Mount::ACTIVE, Mount::ammo, weapon_info::BEAM, colLerp(), Mount::DESTROYED, Mount::functionality, Mount::REF::gun, Mount::INACTIVE, Mount::ref, weapon_info::Refire(), Mount::REF::refire, Beam::refireTime(), Mount::status, weapon_info::type, Mount::type, and Mount::UNCHOSEN.
|
inline |
|
inline |
int parse_vdu_type | ( | const char * | x) |
retString128 PrettyDistanceString | ( | double | distance) |
Definition at line 735 of file vdu.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_bool(), XMLSupport::parse_float(), retString128::str, and vs_config.
char printHex | ( | unsigned int | hex) |
Definition at line 1685 of file vdu.cpp.
Referenced by GetColorFromSuccess().
string reformatName | ( | string | nam) |
Definition at line 52 of file vdu.cpp.
Referenced by getUnitNameAndFgNoBase().
char tohexdigit | ( | int | x) |
Definition at line 148 of file vdu.cpp.
Referenced by colToString().
void UpdateViewstyle | ( | VIEWSTYLE & | vs) |
Definition at line 1958 of file vdu.cpp.
References CP_BACK, CP_CHASE, CP_FIXED, CP_FIXEDPOS, CP_FIXEDPOSTARGET, CP_FRONT, CP_LEFT, CP_NUMVIEWS, CP_PAN, CP_PANINSIDE, CP_PANTARGET, CP_RIGHT, CP_TARGET, and CP_VIEWTARGET.
Referenced by VDU::SwitchMode().
int vdu_lookup | ( | char *& | s) |
const char* DamagedCategory |
Definition at line 4970 of file unit_generic.cpp.
|
static |
Definition at line 1692 of file vdu.cpp.
Referenced by GetColorFromSuccess().
|
static |
Definition at line 1694 of file vdu.cpp.
Referenced by GetColorFromSuccess().
|
static |
Definition at line 1693 of file vdu.cpp.
Referenced by GetColorFromSuccess().
const std::string vdu_modes[] |
ALERT to change must change enum in class.
Definition at line 49 of file vdu.cpp.
Referenced by vdu_lookup().