Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vdu.h>
Public Types | |
enum | VDU_MODE { TARGET =0x1, NAV =0x2, OBJECTIVES =0x4, COMM =0x8, WEAPON =0x10, DAMAGE =0x20, SHIELD =0x40, MANIFEST =0x80, TARGETMANIFEST =0x100, VIEW =0x200, MSG =0x400, SCANNING =0x800, NETWORK =0x1000, WEBCAM =0x2000 } |
Alert! To add a mode must change const array on the bottom. VIEW must remain LAST. More... | |
Public Member Functions | |
void | ReceivedTargetData () |
bool | staticable () const |
unsigned int | getMode () const |
VDU (const char *file, TextPlane *textp, unsigned short modes, short rows, short cols, float *MaxArmor, float *maxhull) | |
void | Draw (GameCockpit *parentcp, Unit *parent, const GFXColor &c) |
Draws the entire VDU, all data, etc. More... | |
void | SwitchMode (Unit *parent) |
Changes the mode of the current VDU to another legal mode. More... | |
void | SetViewingStyle (VIEWSTYLE vm) |
void | Scroll (int howmuch) |
bool | SetCommAnimation (Animation *ani, Unit *unit, bool force) |
Unit * | GetCommunicating () |
bool | CheckCommAnimation (Unit *un) const |
![]() | |
VSSprite (const char *file, enum FILTER texturefilter=BILINEAR, GFXBOOL force=GFXFALSE) | |
VSSprite (Texture *surface, float xcenter, float ycenter, float width, float height, float s=0.f, float t=0.f, bool isAnimation=false) | |
VSSprite (const VSSprite &source) | |
~VSSprite () | |
bool | LoadSuccess () const |
void | Draw () |
void | DrawHere (Vector &ll, Vector &lr, Vector &ur, Vector &ul) |
void | Rotate (const float &rad) |
void | SetRotation (const float &rot) |
void | GetRotation (float &rot) |
void | ReadTexture (VSFileSystem::VSFile *f) |
void | GetST (float &s, float &t) |
void | SetST (const float s, const float t) |
void | SetTime (double newtime) |
void | SetPosition (const float &x1, const float &y1) |
void | GetPosition (float &x1, float &y1) |
void | SetSize (float s1, float s2) |
void | GetSize (float &x1, float &y1) |
void | SetTimeSource (SharedPtr< Audio::Source > source) |
void | ClearTimeSource () |
bool | Done () const |
void | Reset () |
SharedPtr< Audio::Source > | GetTimeSource () const |
Texture * | getTexture () |
const Texture * | getTexture () const |
Public Attributes | |
int | scrolloffset |
enum VDU::VDU_MODE |
VDU::VDU | ( | const char * | file, |
TextPlane * | textp, | ||
unsigned short | modes, | ||
short | rows, | ||
short | cols, | ||
float * | MaxArmor, | ||
float * | maxhull | ||
) |
Definition at line 187 of file vdu.cpp.
References _Universe, CP_TARGET, MSG, Network, Universe::numPlayers(), SwitchMode(), and VIEW.
void VDU::Draw | ( | GameCockpit * | parentcp, |
Unit * | parent, | ||
const GFXColor & | c | ||
) |
Draws the entire VDU, all data, etc.
Definition at line 1806 of file vdu.cpp.
References _Universe, Universe::AccessCamera(), GameCockpit::autoMessage, GameCockpit::autoMessageTime, TextPlane::bgcol, TextPlane::col, COMM, Universe::current_stardate, DAMAGE, AnimatedTexture::Done(), VSSprite::Draw(), TextPlane::Draw(), TextPlane::GetCharSize(), Unit::GetComputerData(), StarDate::GetFullTrekDate(), UniverseUtil::GetGameTime(), NetClient::getLag(), Camera::GetNebula(), VSSprite::GetPosition(), VSSprite::GetSize(), UnitContainer::GetUnit(), VegaConfig::getVariable(), GFXBlendMode(), GFXDisable(), GFXEnable(), int, INVSRCALPHA, LIGHTING, MangleString, MANIFEST, MSG, NAV, Unit::Computer::NavPoint, Network, NETWORK, OBJECTIVES, XMLSupport::parse_float(), Unit::Position(), SCANNING, TextPlane::SetPos(), TextPlane::SetSize(), UnitContainer::SetUnit(), SHIELD, SRCALPHA, retString128::str, TARGET, Unit::Computer::target, TARGETMANIFEST, TEXTURE0, TEXTURE1, Unit::ToLocalCoordinates(), VIEW, vs_config, WEAPON, Universe::whichPlayerStarship(), x, and y.
Unit * VDU::GetCommunicating | ( | ) |
Definition at line 1046 of file vdu.cpp.
References AnimatedTexture::Done(), and UnitContainer::GetUnit().
|
inline |
Definition at line 75 of file vdu.h.
Referenced by staticable().
|
inline |
void VDU::Scroll | ( | int | howmuch) |
Definition at line 371 of file vdu.cpp.
References scrolloffset.
Definition at line 1027 of file vdu.cpp.
References COMM, AnimatedTexture::Reset(), and UnitContainer::SetUnit().
void VDU::SetViewingStyle | ( | VIEWSTYLE | vm) |
bool VDU::staticable | ( | ) | const |
Definition at line 37 of file vdu.cpp.
References COMM, getMode(), VegaConfig::getVariable(), NAV, XMLSupport::parse_bool(), TARGET, TARGETMANIFEST, VIEW, vs_config, and WEBCAM.
void VDU::SwitchMode | ( | Unit * | parent) |
Changes the mode of the current VDU to another legal mode.
Definition at line 1997 of file vdu.cpp.
References _Universe, CP_CHASE, CP_TARGET, Network, SCANNING, scrolloffset, NetClient::startWebcamTransfer(), NetClient::stopWebcamTransfer(), UpdateViewstyle(), VIEW, and Universe::whichPlayerStarship().
Referenced by VDU().
int VDU::scrolloffset |
Definition at line 79 of file vdu.h.
Referenced by Scroll(), and SwitchMode().