Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Classes | |
class | VideoAudioStreamListener |
Typedefs | |
typedef std::map< std::string, std::string > | Dictionary |
Functions | |
BaseInterface::Room * | CheckRoom (int room) |
int | Room (std::string text) |
void | Texture (int room, std::string index, std::string file, float x, float y) |
SharedPtr< Source > | CreateVideoSoundStream (const std::string &afile, const std::string &scene) |
void | DestroyVideoSoundStream (SharedPtr< Source > source, const std::string &scene) |
bool | Video (int room, std::string index, std::string vfile, std::string afile, float x, float y) |
bool | VideoStream (int room, std::string index, std::string streamfile, float x, float y, float w, float h) |
void | SetVideoCallback (int room, std::string index, std::string callback) |
void | SetTexture (int room, std::string index, std::string file) |
void | SetTextureSize (int room, std::string index, float w, float h) |
void | SetTexturePos (int room, std::string index, float x, float y) |
void | PlayVideo (int room, std::string index) |
void | StopVideo (int room, std::string index) |
void | SetDJEnabled (bool enabled) |
void | Ship (int room, std::string index, QVector pos, Vector Q, Vector R) |
void | RunScript (int room, std::string ind, std::string pythonfile, float time) |
void | TextBox (int room, std::string ind, std::string text, float x, float y, Vector widheimult, Vector backcol, float backalp, Vector forecol) |
void | SetTextBoxText (int room, std::string index, std::string text) |
void | SetLinkArea (int room, std::string index, float x, float y, float wid, float hei) |
void | SetLinkText (int room, std::string index, std::string text) |
void | SetLinkPython (int room, std::string index, std::string python) |
void | SetLinkRoom (int room, std::string index, int to) |
void | SetLinkEventMask (int room, std::string index, std::string maskdef) |
static void | BaseLink (BaseInterface::Room *room, float x, float y, float wid, float hei, std::string text, bool reverse=false) |
void | Link (int room, std::string index, float x, float y, float wid, float hei, std::string text, int to) |
void | LinkPython (int room, std::string index, std::string pythonfile, float x, float y, float wid, float hei, std::string text, int to) |
void | Launch (int room, std::string index, float x, float y, float wid, float hei, std::string text) |
void | LaunchPython (int room, std::string index, std::string pythonfile, float x, float y, float wid, float hei, std::string text) |
void | EjectPython (int room, std::string index, std::string pythonfile, float x, float y, float wid, float hei, std::string text) |
void | Comp (int room, std::string index, float x, float y, float wid, float hei, std::string text, std::string modes) |
void | CompPython (int room, std::string index, std::string pythonfile, float x, float y, float wid, float hei, std::string text, std::string modes) |
void | Python (int room, std::string index, float x, float y, float wid, float hei, std::string text, std::string pythonfile, bool front) |
void | GlobalKeyPython (std::string pythonfile) |
void | MessageToRoom (int room, std::string text) |
void | EnqueueMessageToRoom (int room, std::string text) |
void | Message (std::string text) |
void | EnqueueMessage (std::string text) |
void | EraseLink (int room, std::string index) |
void | EraseObj (int room, std::string index) |
int | GetCurRoom () |
void | SetCurRoom (int room) |
int | GetNumRoom () |
bool | BuyShip (std::string name, bool my_fleet, bool force_base_inventory) |
bool | SellShip (std::string name) |
Dictionary & | _GetEventData () |
void | SetEventData (BoostPythonDictionary data) |
void | SetMouseEventData (std::string type, float x, float y, int buttonMask) |
void | SetKeyStatusEventData (unsigned int modmask) |
void | SetKeyEventData (std::string type, unsigned int keycode, unsigned int modmask) |
const Dictionary & | GetEventData () |
float | GetTextHeight (std::string text, Vector widheimult) |
float | GetTextWidth (std::string text, Vector widheimult) |
void | LoadBaseInterface (string name) |
void | LoadBaseInterfaceAtDock (string name, Unit *dockat, Unit *dockee) |
void | refreshBaseComputerUI (const Cargo *carg) |
void | ExitGame () |
bool | HasObject (int room, std::string index) |
void | SetEventData (Dictionary data) |
void | LoadBaseInterface (std::string name) |
void | LoadBaseInterfaceAtDock (std::string name, Unit *dockat, Unit *dockee) |
void | refreshBaseComputerUI (const class Cargo *dirtyCarg) |
bool | Video (int room, std::string index, std::string file, float x, float y) |
void | Python (int room, std::string index, float x, float y, float wid, float hei, std::string text, std::string pythonfile) |
typedef std::map< std::string, std::string > BaseUtil::Dictionary |
Definition at line 42 of file base_util.h.
Dictionary & BaseUtil::_GetEventData | ( | ) |
Definition at line 656 of file base_util.cpp.
Referenced by GetEventData(), SetEventData(), SetKeyEventData(), SetKeyStatusEventData(), and SetMouseEventData().
|
static |
Definition at line 442 of file base_util.cpp.
References BaseInterface::Room::Link::hei, BaseInterface::Room::links, BaseInterface::Room::Link::text, BaseInterface::Room::Link::wid, BaseInterface::Room::Link::x, x, BaseInterface::Room::Link::y, and y.
Referenced by CompPython(), EjectPython(), LaunchPython(), LinkPython(), and Python().
Definition at line 643 of file base_util.cpp.
References BaseInterface::baseun, buyShip(), BaseInterface::caller, BaseInterface::CurrentBase, and UnitContainer::GetUnit().
|
inline |
Definition at line 51 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::rooms.
Referenced by CompPython(), EjectPython(), EraseLink(), EraseObj(), LaunchPython(), LinkPython(), BaseUtil::VideoAudioStreamListener::onEndOfStream(), PlayVideo(), Python(), RunScript(), SetCurRoom(), SetLinkArea(), SetLinkEventMask(), SetLinkPython(), SetLinkRoom(), SetLinkText(), SetTextBoxText(), SetTexture(), SetTexturePos(), SetTextureSize(), SetVideoCallback(), Ship(), StopVideo(), TextBox(), Texture(), Video(), and VideoStream().
void BaseUtil::Comp | ( | int | room, |
std::string | index, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
std::string | modes | ||
) |
Definition at line 500 of file base_util.cpp.
References CompPython().
Referenced by BaseInterface::BaseInterface(), BaseInterface::Room::Click(), CompPython(), and Unit::GetSortedCargoCat().
void BaseUtil::CompPython | ( | int | room, |
std::string | index, | ||
std::string | pythonfile, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
std::string | modes | ||
) |
Definition at line 504 of file base_util.cpp.
References BaseLink(), BaseComputer::CARGO, CheckRoom(), Comp(), BaseComputer::DISPLAY_MODE_COUNT, i, BaseComputer::INFO, j, BaseInterface::Room::links, BaseComputer::LOADSAVE, XMLSupport::EnumMap::lookup(), BaseComputer::MISSIONS, BaseInterface::Room::Comp::modes, BaseComputer::NETWORK, BaseComputer::NEWS, BaseComputer::SHIP_DEALER, BaseComputer::UPGRADE, and VSFileSystem::vs_fprintf().
Referenced by Comp().
SharedPtr< Audio::Source > BaseUtil::CreateVideoSoundStream | ( | const std::string & | afile, |
const std::string & | scene | ||
) |
Definition at line 139 of file base_util.cpp.
References VSFileSystem::VideoFile.
Referenced by BaseInterface::Room::BaseVSMovie::BaseVSMovie(), BaseInterface::Room::BaseVSMovie::SetMovie(), and Video().
Definition at line 163 of file base_util.cpp.
Referenced by BaseInterface::Room::BaseVSMovie::SetMovie(), and BaseInterface::Room::BaseVSSprite::~BaseVSSprite().
void BaseUtil::EjectPython | ( | int | room, |
std::string | index, | ||
std::string | pythonfile, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text | ||
) |
Definition at line 493 of file base_util.cpp.
References BaseLink(), CheckRoom(), and BaseInterface::Room::links.
void BaseUtil::EnqueueMessage | ( | std::string | text) |
Definition at line 595 of file base_util.cpp.
References BaseInterface::CurrentBase, and EnqueueMessageToRoom().
void BaseUtil::EnqueueMessageToRoom | ( | int | room, |
std::string | text | ||
) |
Definition at line 585 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::rooms.
Referenced by EnqueueMessage().
void BaseUtil::EraseLink | ( | int | room, |
std::string | index | ||
) |
Definition at line 600 of file base_util.cpp.
References CheckRoom(), i, int, and BaseInterface::Room::links.
void BaseUtil::EraseObj | ( | int | room, |
std::string | index | ||
) |
Definition at line 613 of file base_util.cpp.
References CheckRoom(), i, int, and BaseInterface::Room::objs.
void BaseUtil::ExitGame | ( | ) |
Definition at line 753 of file base_util.cpp.
References CockpitKeys::QuitNow().
int BaseUtil::GetCurRoom | ( | ) |
Definition at line 626 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::curroom.
Referenced by BaseUtil::VideoAudioStreamListener::onEndOfStream().
const Dictionary & BaseUtil::GetEventData | ( | ) |
Definition at line 711 of file base_util.cpp.
References _GetEventData().
Referenced by GetEventDataPython().
int BaseUtil::GetNumRoom | ( | ) |
Definition at line 638 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::rooms.
Definition at line 716 of file base_util.cpp.
References g_game, getFontHeight(), VegaConfig::getVariable(), XMLSupport::parse_bool(), XMLSupport::parse_float(), vs_config, and game_data_t::y_resolution.
Definition at line 725 of file base_util.cpp.
void BaseUtil::GlobalKeyPython | ( | std::string | pythonfile) |
Definition at line 574 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::python_kbhandler.
Definition at line 71 of file base_util_server.cpp.
void BaseUtil::Launch | ( | int | room, |
std::string | index, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text | ||
) |
Definition at line 475 of file base_util.cpp.
References LaunchPython().
Referenced by BaseInterface::BaseInterface(), and BaseInterface::Room::Click().
void BaseUtil::LaunchPython | ( | int | room, |
std::string | index, | ||
std::string | pythonfile, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text | ||
) |
Definition at line 479 of file base_util.cpp.
References BaseLink(), CheckRoom(), and BaseInterface::Room::links.
Referenced by Launch().
void BaseUtil::Link | ( | int | room, |
std::string | index, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
int | to | ||
) |
Definition at line 455 of file base_util.cpp.
References LinkPython().
void BaseUtil::LinkPython | ( | int | room, |
std::string | index, | ||
std::string | pythonfile, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
int | to | ||
) |
Definition at line 459 of file base_util.cpp.
References BaseLink(), CheckRoom(), and BaseInterface::Room::links.
Referenced by Link().
void BaseUtil::LoadBaseInterface | ( | std::string | name) |
void BaseUtil::LoadBaseInterface | ( | string | name) |
Definition at line 731 of file base_util.cpp.
References UniverseUtil::getPlayer(), and LoadBaseInterfaceAtDock().
Referenced by GameCockpit::Draw().
Definition at line 736 of file base_util.cpp.
References BaseInterface::CurrentBase, BaseInterface::InitCallbacks(), and BaseInterface::Terminate().
Referenced by LoadBaseInterface(), and GameUnit< UnitType >::UpgradeInterface().
void BaseUtil::Message | ( | std::string | text) |
Definition at line 590 of file base_util.cpp.
References BaseInterface::CurrentBase, and MessageToRoom().
void BaseUtil::MessageToRoom | ( | int | room, |
std::string | text | ||
) |
Definition at line 580 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::rooms.
Referenced by Message().
void BaseUtil::PlayVideo | ( | int | room, |
std::string | index | ||
) |
Definition at line 278 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
void BaseUtil::Python | ( | int | room, |
std::string | index, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
std::string | pythonfile | ||
) |
Definition at line 58 of file base_util_server.cpp.
void BaseUtil::Python | ( | int | room, |
std::string | index, | ||
float | x, | ||
float | y, | ||
float | wid, | ||
float | hei, | ||
std::string | text, | ||
std::string | pythonfile, | ||
bool | front | ||
) |
Definition at line 553 of file base_util.cpp.
References BaseLink(), CheckRoom(), and BaseInterface::Room::links.
void BaseUtil::refreshBaseComputerUI | ( | const class Cargo * | dirtyCarg) |
Definition at line 75 of file base_util_server.cpp.
void BaseUtil::refreshBaseComputerUI | ( | const Cargo * | carg) |
int BaseUtil::Room | ( | std::string | text) |
Definition at line 117 of file base_util.cpp.
References BaseInterface::CurrentBase, and BaseInterface::rooms.
Definition at line 324 of file base_util.cpp.
References CheckRoom(), and BaseInterface::Room::objs.
bool BaseUtil::SellShip | ( | std::string | name) |
Definition at line 649 of file base_util.cpp.
References BaseInterface::baseun, BaseInterface::caller, BaseInterface::CurrentBase, UnitContainer::GetUnit(), and sellShip().
void BaseUtil::SetCurRoom | ( | int | room) |
Definition at line 631 of file base_util.cpp.
References CheckRoom(), BaseInterface::CurrentBase, and BaseInterface::GotoLink().
void BaseUtil::SetDJEnabled | ( | bool | enabled) |
Definition at line 310 of file base_util.cpp.
References BaseInterface::CurrentBase, BaseInterface::setDJEnabled(), and Music::Stop().
void BaseUtil::SetEventData | ( | Dictionary | data) |
void BaseUtil::SetEventData | ( | BoostPythonDictionary | data) |
Definition at line 662 of file base_util.cpp.
References _GetEventData().
Definition at line 694 of file base_util.cpp.
References _GetEventData(), and SetKeyStatusEventData().
Referenced by BaseInterface::Key().
void BaseUtil::SetKeyStatusEventData | ( | unsigned int | modmask) |
Definition at line 682 of file base_util.cpp.
References _GetEventData(), KB_MOD_ALT, KB_MOD_CTRL, KB_MOD_SHIFT, and pullActiveModifiers().
Referenced by SetKeyEventData(), and SetMouseEventData().
Definition at line 356 of file base_util.cpp.
References CheckRoom(), i, BaseInterface::Room::links, x, and y.
void BaseUtil::SetLinkEventMask | ( | int | room, |
std::string | index, | ||
std::string | maskdef | ||
) |
Definition at line 399 of file base_util.cpp.
References CheckRoom(), BaseInterface::Room::Link::ClickEvent, BaseInterface::Room::Link::DownEvent, BaseInterface::Room::Link::EnterEvent, fprintf, i, BaseInterface::Room::Link::LeaveEvent, BaseInterface::Room::links, and BaseInterface::Room::Link::UpEvent.
void BaseUtil::SetLinkPython | ( | int | room, |
std::string | index, | ||
std::string | python | ||
) |
Definition at line 379 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::links.
Definition at line 388 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::links.
void BaseUtil::SetLinkText | ( | int | room, |
std::string | index, | ||
std::string | text | ||
) |
Definition at line 370 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::links.
Definition at line 667 of file base_util.cpp.
References _GetEventData(), SetKeyStatusEventData(), x, and y.
Referenced by BaseInterface::Room::Link::Click(), BaseInterface::Room::Link::MouseEnter(), BaseInterface::Room::Link::MouseLeave(), and BaseInterface::Room::Link::MouseMove().
void BaseUtil::SetTextBoxText | ( | int | room, |
std::string | index, | ||
std::string | text | ||
) |
Definition at line 345 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
void BaseUtil::SetTexture | ( | int | room, |
std::string | index, | ||
std::string | file | ||
) |
Definition at line 245 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
Definition at line 267 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
Definition at line 256 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
void BaseUtil::SetVideoCallback | ( | int | room, |
std::string | index, | ||
std::string | callback | ||
) |
Definition at line 223 of file base_util.cpp.
References CheckRoom(), i, BaseInterface::Room::objs, BaseInterface::Room::BaseVSMovie::setCallback(), and BaseInterface::Room::BaseVSSprite::soundsource.
Definition at line 316 of file base_util.cpp.
References CheckRoom(), BaseInterface::Room::objs, and Vector.
Referenced by Briefing::AddStarship().
void BaseUtil::StopVideo | ( | int | room, |
std::string | index | ||
) |
Definition at line 294 of file base_util.cpp.
References CheckRoom(), i, and BaseInterface::Room::objs.
void BaseUtil::TextBox | ( | int | room, |
std::string | ind, | ||
std::string | text, | ||
float | x, | ||
float | y, | ||
Vector | widheimult, | ||
Vector | backcol, | ||
float | backalp, | ||
Vector | forecol | ||
) |
Definition at line 330 of file base_util.cpp.
References CheckRoom(), and BaseInterface::Room::objs.
Definition at line 124 of file base_util.cpp.
References CheckRoom(), VegaConfig::getVariable(), index, BaseInterface::Room::objs, XMLSupport::parse_bool(), and vs_config.
Referenced by ActivateWhite(), DecalQueue::AddTexture(), Background::Background(), Texture::Clone(), Technique::Pass::compile(), GameStarSystem::createBackground(), createTexture(), FactionUtil::createTexture(), ParticleTrail::DrawAndUpdate(), Texture::modold(), Flightgroup::newFlightgroup(), GuiTexture::read(), VSSprite::ReadTexture(), SpriteStarVlist::SpriteStarVlist(), Video(), and VSSprite::VSSprite().
Definition at line 12 of file base_util_server.cpp.
bool BaseUtil::Video | ( | int | room, |
std::string | index, | ||
std::string | vfile, | ||
std::string | afile, | ||
float | x, | ||
float | y | ||
) |
Definition at line 170 of file base_util.cpp.
References CheckRoom(), CreateVideoSoundStream(), e, g_game, BaseInterface::Room::objs, VSSprite::Reset(), VSSprite::SetTimeSource(), game_data_t::sound_enabled, BaseInterface::Room::BaseVSSprite::soundscene, BaseInterface::Room::BaseVSSprite::soundsource, BaseInterface::Room::BaseVSSprite::spr, and Texture().
bool BaseUtil::VideoStream | ( | int | room, |
std::string | index, | ||
std::string | streamfile, | ||
float | x, | ||
float | y, | ||
float | w, | ||
float | h | ||
) |
Definition at line 196 of file base_util.cpp.
References CheckRoom(), accountXML::file, fprintf, VSSprite::LoadSuccess(), BaseInterface::Room::objs, BaseInterface::Room::BaseVSSprite::SetPos(), BaseInterface::Room::BaseVSSprite::SetSize(), and BaseInterface::Room::BaseVSSprite::spr.