Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <stdlib.h>
#include <string>
#include "cmd/unit_generic.h"
#include "navscreenoccupied.h"
#include "gui/glut_support.h"
#include "navscreen.h"
#include "navitemtypes.h"
Go to the source code of this file.
Classes | |
class | navdrawnode |
class | navdrawlist |
Functions | |
void | drawdescription (Unit *source, float x, float y, float size_x, float size_y, bool ignore_occupied_areas, navscreenoccupied *screenoccupation, const GFXColor &col) |
void | drawdescription (string text, float x, float y, float size_x, float size_y, bool ignore_occupied_areas, navscreenoccupied *screenoccupation, const GFXColor &col) |
void | drawlistitem (int type, float size, float x, float y, Unit *source, navscreenoccupied *screenoccupation, bool inmouserange, bool currentistail, float unselectedalpha, GFXColor *factioncolours) |
void drawdescription | ( | Unit * | source, |
float | x, | ||
float | y, | ||
float | size_x, | ||
float | size_y, | ||
bool | ignore_occupied_areas, | ||
navscreenoccupied * | screenoccupation, | ||
const GFXColor & | col | ||
) |
Definition at line 123 of file drawlist.cpp.
References drawdescription(), and getUnitNameAndFgNoBase().
Referenced by drawdescription(), drawlistitem(), NavigationSystem::DrawMission(), and NavigationSystem::DrawSectorList().
void drawdescription | ( | string | text, |
float | x, | ||
float | y, | ||
float | size_x, | ||
float | size_y, | ||
bool | ignore_occupied_areas, | ||
navscreenoccupied * | screenoccupation, | ||
const GFXColor & | col | ||
) |
Definition at line 137 of file drawlist.cpp.
References TextPlane::bgcol, TextPlane::col, TextPlane::Draw(), navscreenoccupied::findfreesector(), float, VegaConfig::getVariable(), XMLSupport::parse_float(), TextPlane::SetCharSize(), TextPlane::SetPos(), TextPlane::SetText(), and vs_config.
void drawlistitem | ( | int | type, |
float | size, | ||
float | x, | ||
float | y, | ||
Unit * | source, | ||
navscreenoccupied * | screenoccupation, | ||
bool | inmouserange, | ||
bool | currentistail, | ||
float | unselectedalpha, | ||
GFXColor * | factioncolours | ||
) |
Definition at line 200 of file drawlist.cpp.
References GFXColor::a, Delta(), NavigationSystem::DrawCircle(), drawdescription(), NavigationSystem::DrawHalfCircleTop(), NavigationSystem::DrawJump(), NavigationSystem::DrawMissile(), NavigationSystem::DrawPlanet(), NavigationSystem::DrawStation(), Unit::faction, VegaConfig::getColor(), UniverseUtil::getCurrentPlayer(), UniverseUtil::getPlayerX(), Unit::getRelation(), getUnitTypeColor(), INIT_COL_ARRAY, navasteroid, navcapship, navcurrentplayer, navfighter, navjump, navmissile, navnebula, navplanet, navplayer, navstation, navsun, and vs_config.
Referenced by navdrawlist::draw(), and NavigationSystem::DrawSystem().