Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <algorithm>
#include <cmath>
#include "vs_globals.h"
#include "vegastrike.h"
#include "gfx/gauge.h"
#include "gfx/cockpit.h"
#include "universe.h"
#include "star_system.h"
#include "cmd/unit_generic.h"
#include "cmd/unit_factory.h"
#include "cmd/collection.h"
#include "gfx/hud.h"
#include "gfx/vdu.h"
#include "lin_time.h"
#include "config_xml.h"
#include "cmd/images.h"
#include "cmd/script/mission.h"
#include "cmd/script/msgcenter.h"
#include "cmd/ai/flyjoystick.h"
#include "cmd/ai/firekeyboard.h"
#include "cmd/ai/aggressive.h"
#include "main_loop.h"
#include <assert.h>
#include "savegame.h"
#include "gfx/animation.h"
#include "gfx/mesh.h"
#include "universe_util.h"
#include "in_mouse.h"
#include "gui/glut_support.h"
#include "networking/netclient.h"
#include "cmd/unit_util.h"
#include "hashtable.h"
#include "navscreen.h"
#include "gfx/masks.h"
#include "navscreenoccupied.h"
Go to the source code of this file.
Classes | |
class | systemdrawnode |
Macros | |
#define | SQRT3 1.7320508 |
Typedefs | |
typedef vector< systemdrawnode > | systemdrawlist |
Functions | |
static void | DrawNodeDescription (string text, float x_, float y_, float size_x, float size_y, bool ignore_occupied_areas, const GFXColor &col, navscreenoccupied *screenoccupation) |
static char | GetSystemColor (string source) |
static void | DrawNode (int type, float size, float x, float y, std::string source, navscreenoccupied *screenoccupation, bool moused, GFXColor race, bool mouseover=false, bool willclick=false, string insector="") |
bool | testandset (bool &b, bool val) |
bool | checkedVisited (const std::string &n) |
float | vsmax (float x, float y) |
Variables | |
float | SYSTEM_DEFAULT_SIZE = 0.02 |
const int | systemambiguous = 0 |
static GFXColor | GrayColor (.5,.5,.5,.5) |
float | GrayColorArray [4] = {.5, .5, .5, .5} |
float | screensmash = 1 |
static NavigationSystem::CachedSystemIterator::SystemInfo | nullPair ("-", QVector(0, 0, 0), std::vector< std::string >(), NULL) |
static NavigationSystem::CachedSectorIterator::SectorInfo | nullSectorPair ("-") |
#define SQRT3 1.7320508 |
typedef vector< systemdrawnode > systemdrawlist |
Definition at line 226 of file drawgalaxy.cpp.
bool checkedVisited | ( | const std::string & | n) |
Definition at line 288 of file drawgalaxy.cpp.
References _Universe, Universe::AccessCockpit(), SaveGame::getMissionData(), VegaConfig::getVariable(), XMLSupport::parse_bool(), Cockpit::savegame, v, and vs_config.
Referenced by NavigationSystem::CachedSystemIterator::SystemInfo::isDrawable().
|
static |
Definition at line 102 of file drawgalaxy.cpp.
References GFXColor::b, Beautify(), NavigationSystem::DrawCircle(), DrawNodeDescription(), GFXColor::g, VegaConfig::getColor(), GetSystemColor(), GrayColor, GFXColor::r, and vs_config.
Referenced by systemdrawnode::draw(), and NavigationSystem::DrawGalaxy().
|
static |
Definition at line 49 of file drawgalaxy.cpp.
References GFXColor::a, TextPlane::bgcol, TextPlane::col, TextPlane::Draw(), navscreenoccupied::findfreesector(), float, VegaConfig::getVariable(), XMLSupport::parse_float(), TextPlane::SetCharSize(), TextPlane::SetPos(), TextPlane::SetText(), and vs_config.
Referenced by DrawNode().
|
static |
Definition at line 90 of file drawgalaxy.cpp.
References _Universe, Universe::AccessCockpit(), SaveGame::getMissionData(), k, Cockpit::savegame, and v.
Referenced by DrawNode().
Definition at line 229 of file drawgalaxy.cpp.
References b.
Referenced by NavigationSystem::SystemIterator::operator++().
Definition at line 727 of file drawgalaxy.cpp.
References y.
Referenced by NavigationSystem::DrawGalaxy().
|
static |
Referenced by DrawNode().
float GrayColorArray[4] = {.5, .5, .5, .5} |
Definition at line 47 of file drawgalaxy.cpp.
Referenced by NavigationSystem::CachedSystemIterator::SystemInfo::UpdateColor().
|
static |
|
static |
float screensmash = 1 |
Definition at line 236 of file drawgalaxy.cpp.
Referenced by NavigationSystem::SystemIterator::Position().
float SYSTEM_DEFAULT_SIZE = 0.02 |
Definition at line 44 of file drawgalaxy.cpp.
Referenced by NavigationSystem::DrawGalaxy().
const int systemambiguous = 0 |
Definition at line 45 of file drawgalaxy.cpp.
Referenced by NavigationSystem::DrawGalaxy().