Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Functions | |
void | QuitNow () |
void | TextMessageCallback (unsigned int ch, unsigned int mod, bool release, int x, int y) |
void | TextMessageKey (const KBData &, KBSTATE newState) |
void | SkipMusicTrack (const KBData &, KBSTATE newState) |
static void | _PitchDown (KBSTATE newState, int fromCam=0, int toCam=NUM_CAM-1) |
static void | _PitchUp (KBSTATE newState, int fromCam=0, int toCam=NUM_CAM-1) |
static void | _YawLeft (KBSTATE newState, int fromCam=0, int toCam=NUM_CAM-1) |
static void | _YawRight (KBSTATE newState, int fromCam=0, int toCam=NUM_CAM-1) |
void | PitchDown (const KBData &, KBSTATE newState) |
void | PitchUp (const KBData &, KBSTATE newState) |
void | YawLeft (const KBData &, KBSTATE newState) |
void | YawRight (const KBData &, KBSTATE newState) |
static void | InitPanInside () |
void | LookDown (const KBData &kbdata, KBSTATE newState) |
void | LookUp (const KBData &kbdata, KBSTATE newState) |
void | LookLeft (const KBData &kbdata, KBSTATE newState) |
void | LookRight (const KBData &kbdata, KBSTATE newState) |
void | Quit (const KBData &, KBSTATE newState) |
void | Inside (const KBData &, KBSTATE newState) |
void | ZoomOut (const KBData &, KBSTATE newState) |
void | ScrollUp (const KBData &, KBSTATE newState) |
void | ScrollDown (const KBData &, KBSTATE newState) |
void | ZoomIn (const KBData &, KBSTATE newState) |
void | ZoomReset (const KBData &, KBSTATE newState) |
void | InsideLeft (const KBData &, KBSTATE newState) |
void | InsideRight (const KBData &, KBSTATE newState) |
void | PanTarget (const KBData &, KBSTATE newState) |
void | ViewTarget (const KBData &, KBSTATE newState) |
void | OutsideTarget (const KBData &, KBSTATE newState) |
void | InsideBack (const KBData &, KBSTATE newState) |
void | CommModeVDU (const KBData &, KBSTATE newState) |
void | ScanningModeVDU (const KBData &, KBSTATE newState) |
void | ObjectiveModeVDU (const KBData &, KBSTATE newState) |
void | TargetModeVDU (const KBData &, KBSTATE newState) |
void | ViewModeVDU (const KBData &, KBSTATE newState) |
void | DamageModeVDU (const KBData &, KBSTATE newState) |
void | ManifestModeVDU (const KBData &, KBSTATE newState) |
void | GunModeVDU (const KBData &s, KBSTATE newState) |
void | ReverseGunModeVDU (const KBData &s, KBSTATE newState) |
void | MissileModeVDU (const KBData &s, KBSTATE newState) |
void | ReverseMissileModeVDU (const KBData &s, KBSTATE newState) |
void | SwitchLVDU (const KBData &, KBSTATE newState) |
void | SwitchRVDU (const KBData &, KBSTATE newState) |
void | SwitchMVDU (const KBData &, KBSTATE newState) |
void | SwitchULVDU (const KBData &, KBSTATE newState) |
void | SwitchURVDU (const KBData &, KBSTATE newState) |
void | SwitchUMVDU (const KBData &, KBSTATE newState) |
void | Behind (const KBData &, KBSTATE newState) |
void | Pan (const KBData &, KBSTATE newState) |
Variables | |
unsigned int | textmessager = 0 |
static bool | waszero = false |
static float | scrolltime = 0 |
|
static |
Definition at line 261 of file main_loop.cpp.
References _Slew, _Universe, Cockpit::AccessCamera(), Universe::AccessCockpit(), PhysicsSystem::ApplyBalancedLocalTorque(), vs_options::camera_pan_speed, i, Camera::myPhysics, PRESS, Camera::Q, QuitAllow, QuitNow(), Camera::R, R, RELEASE, PhysicsSystem::SetAngularVelocity(), and Vector.
Referenced by PitchDown().
|
static |
Definition at line 280 of file main_loop.cpp.
References _Slew, _Universe, Cockpit::AccessCamera(), Universe::AccessCockpit(), PhysicsSystem::ApplyBalancedLocalTorque(), vs_options::camera_pan_speed, i, Camera::myPhysics, PRESS, Camera::Q, Camera::R, R, RELEASE, PhysicsSystem::SetAngularVelocity(), and Vector.
Referenced by PitchUp().
|
static |
Definition at line 297 of file main_loop.cpp.
References _Slew, _Universe, Cockpit::AccessCamera(), Universe::AccessCockpit(), PhysicsSystem::ApplyBalancedLocalTorque(), vs_options::camera_pan_speed, i, Camera::myPhysics, Camera::P, PRESS, Camera::R, R, RELEASE, PhysicsSystem::SetAngularVelocity(), and Vector.
Referenced by YawLeft().
|
static |
Definition at line 314 of file main_loop.cpp.
References _Slew, _Universe, Cockpit::AccessCamera(), Universe::AccessCockpit(), PhysicsSystem::ApplyBalancedLocalTorque(), vs_options::camera_pan_speed, i, Camera::myPhysics, Camera::P, PRESS, Camera::R, R, RELEASE, PhysicsSystem::SetAngularVelocity(), and Vector.
Referenced by YawRight().
Definition at line 689 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_CHASE, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 564 of file main_loop.cpp.
References vs_options::comm, VDU::COMM, soundContainer::loadsound(), soundContainer::playsound(), PRESS, soundContainer::sound, and SwitchVDUTo().
Referenced by initGlobalCommandMap().
Definition at line 616 of file main_loop.cpp.
References VDU::DAMAGE, soundContainer::loadsound(), soundContainer::playsound(), PRESS, vs_options::repair, soundContainer::sound, and SwitchVDUTo().
Referenced by initGlobalCommandMap().
Definition at line 638 of file main_loop.cpp.
References PRESS, SwitchVDUTo(), VDU::WEAPON, and FireKeyboard::WeapSelKey().
Referenced by initGlobalCommandMap().
|
static |
Definition at line 351 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_PANINSIDE, PitchDown(), PitchUp(), RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by LookDown(), LookLeft(), LookRight(), and LookUp().
Definition at line 442 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), Universe::activeStarSystem(), vs_options::background, vs_options::cockpit, CP_FRONT, vs_options::disabled_cockpit_allowed, DOWN, Background::EnableBG(), findUnitInStarsystem(), StarSystem::getBackground(), Unit::getCockpit(), Cockpit::GetParent(), Cockpit::GetView(), Cockpit::Init(), Unit::name, Unit::owner, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by DoCockpitKeys(), and initGlobalCommandMap().
Definition at line 553 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_BACK, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 507 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_LEFT, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 518 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_RIGHT, DOWN, PRESS, and Cockpit::SetView().
Referenced by initGlobalCommandMap().
Definition at line 360 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), vs_options::camera_pan_speed, CP_PANINSIDE, CP_RIGHT, DOWN, Cockpit::GetView(), InitPanInside(), PitchDown(), PRESS, QuitAllow, QuitNow(), RELEASE, and Cockpit::SetInsidePanPitchSpeed().
Referenced by initGlobalCommandMap().
Definition at line 398 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), vs_options::camera_pan_speed, CP_PANINSIDE, CP_RIGHT, DOWN, Cockpit::GetView(), InitPanInside(), PRESS, RELEASE, Cockpit::SetInsidePanYawSpeed(), and YawLeft().
Referenced by initGlobalCommandMap().
Definition at line 416 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), vs_options::camera_pan_speed, CP_PANINSIDE, CP_RIGHT, DOWN, Cockpit::GetView(), InitPanInside(), PRESS, RELEASE, Cockpit::SetInsidePanYawSpeed(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 380 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), vs_options::camera_pan_speed, CP_PANINSIDE, CP_RIGHT, DOWN, Cockpit::GetView(), InitPanInside(), PitchUp(), PRESS, RELEASE, and Cockpit::SetInsidePanPitchSpeed().
Referenced by initGlobalCommandMap().
Definition at line 627 of file main_loop.cpp.
References soundContainer::loadsound(), vs_options::manifest, VDU::MANIFEST, soundContainer::playsound(), PRESS, soundContainer::sound, and SwitchVDUTo().
Referenced by initGlobalCommandMap().
Definition at line 648 of file main_loop.cpp.
References FireKeyboard::MisSelKey(), PRESS, SwitchVDUTo(), and VDU::WEAPON.
Referenced by initGlobalCommandMap().
Definition at line 584 of file main_loop.cpp.
References soundContainer::loadsound(), vs_options::objective, VDU::OBJECTIVES, soundContainer::playsound(), PRESS, soundContainer::sound, and SwitchVDUTo().
Referenced by initGlobalCommandMap().
Definition at line 541 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_TARGET, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 700 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_PAN, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by DoCockpitKeys(), and initGlobalCommandMap().
Definition at line 524 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_PANTARGET, DOWN, PRESS, and Cockpit::SetView().
Referenced by initGlobalCommandMap().
Definition at line 331 of file main_loop.cpp.
References _PitchDown().
Referenced by Behind(), GameCockpit::Draw(), initGlobalCommandMap(), InitPanInside(), Inside(), InsideBack(), InsideLeft(), LookDown(), OutsideTarget(), Pan(), and ViewTarget().
Definition at line 336 of file main_loop.cpp.
References _PitchUp().
Referenced by Behind(), GameCockpit::Draw(), initGlobalCommandMap(), InitPanInside(), Inside(), InsideBack(), InsideLeft(), LookUp(), OutsideTarget(), Pan(), and ViewTarget().
Definition at line 435 of file main_loop.cpp.
References PRESS, and QuitAllow.
Referenced by initGlobalCommandMap(), and InitializeInput().
void CockpitKeys::QuitNow | ( | ) |
Definition at line 234 of file main_loop.cpp.
References _Universe, active_missions, cleanexit, forcefeedback, i, Network, VSExit(), vs_options::write_savegame_on_exit, and Universe::WriteSaveGame().
Referenced by _PitchDown(), BaseComputer::actionConfirmedQuitGame(), BaseUtil::ExitGame(), and LookDown().
Definition at line 643 of file main_loop.cpp.
References PRESS, FireKeyboard::ReverseWeapSelKey(), SwitchVDUTo(), and VDU::WEAPON.
Referenced by initGlobalCommandMap().
Definition at line 653 of file main_loop.cpp.
References PRESS, FireKeyboard::ReverseMisSelKey(), SwitchVDUTo(), and VDU::WEAPON.
Referenced by initGlobalCommandMap().
Definition at line 574 of file main_loop.cpp.
References soundContainer::loadsound(), soundContainer::playsound(), PRESS, vs_options::scanning, VDU::SCANNING, soundContainer::sound, and SwitchVDUTo().
Referenced by initGlobalCommandMap().
Definition at line 486 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), DOWN, GetElapsedTime(), PRESS, and Cockpit::ScrollAllVDU().
Referenced by initGlobalCommandMap().
Definition at line 477 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), allexcept, DOWN, GetElapsedTime(), PRESS, and Cockpit::ScrollAllVDU().
Referenced by initGlobalCommandMap().
Definition at line 253 of file main_loop.cpp.
References muzak, PRESS, and Music::Skip().
Referenced by initGlobalCommandMap().
Definition at line 658 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 668 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 663 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 673 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 683 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 678 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), PRESS, and Cockpit::VDUSwitch().
Referenced by initGlobalCommandMap().
Definition at line 595 of file main_loop.cpp.
References vs_options::examine, soundContainer::loadsound(), soundContainer::playsound(), PRESS, soundContainer::sound, SwitchVDUTo(), and VDU::TARGET.
Referenced by initGlobalCommandMap().
void CockpitKeys::TextMessageCallback | ( | unsigned int | ch, |
unsigned int | mod, | ||
bool | release, | ||
int | x, | ||
int | y | ||
) |
Definition at line 173 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), GameCockpit::editingTextMessage, SaveGame::GetCallsign(), Cockpit::GetParent(), getUnitNameAndFgNoBase(), Network, UniverseUtil::receivedCustom(), RestoreKB(), Cockpit::savegame, shiftup(), GameCockpit::textMessage, NetClient::textMessage(), textmessager, waszero, WSK_BACKSPACE, WSK_DELETE, WSK_ESCAPE, WSK_KP_ENTER, WSK_MOD_LSHIFT, WSK_MOD_RSHIFT, and WSK_RETURN.
Referenced by TextMessageKey().
Definition at line 223 of file main_loop.cpp.
References _Universe, Universe::CurrentCockpit(), VegaConfig::getVariable(), Network, XMLSupport::parse_bool(), PRESS, TextMessageCallback(), textmessager, vs_config, and winsys_set_keyboard_func().
Referenced by initGlobalCommandMap().
Definition at line 606 of file main_loop.cpp.
References soundContainer::loadsound(), soundContainer::playsound(), PRESS, soundContainer::sound, SwitchVDUTo(), vs_options::view, and VDU::VIEW.
Referenced by initGlobalCommandMap().
Definition at line 530 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), CP_VIEWTARGET, DOWN, PitchDown(), PitchUp(), PRESS, RELEASE, Cockpit::SetView(), YawLeft(), and YawRight().
Referenced by initGlobalCommandMap().
Definition at line 341 of file main_loop.cpp.
References _YawLeft().
Referenced by Behind(), GameCockpit::Draw(), initGlobalCommandMap(), InitPanInside(), Inside(), InsideBack(), InsideLeft(), LookLeft(), OutsideTarget(), Pan(), and ViewTarget().
Definition at line 346 of file main_loop.cpp.
References _YawRight().
Referenced by Behind(), GameCockpit::Draw(), initGlobalCommandMap(), InitPanInside(), Inside(), InsideBack(), InsideLeft(), LookRight(), OutsideTarget(), Pan(), and ViewTarget().
Definition at line 495 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), DOWN, GetElapsedTime(), getTimeCompression(), PRESS, and Cockpit::zoomfactor.
Referenced by initGlobalCommandMap().
Definition at line 470 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), DOWN, GetElapsedTime(), getTimeCompression(), PRESS, and Cockpit::zoomfactor.
Referenced by initGlobalCommandMap().
Definition at line 501 of file main_loop.cpp.
References _Universe, Universe::AccessCockpit(), DOWN, PRESS, and Cockpit::zoomfactor.
Referenced by initGlobalCommandMap().
|
static |
Definition at line 476 of file main_loop.cpp.
unsigned int CockpitKeys::textmessager = 0 |
Definition at line 170 of file main_loop.cpp.
Referenced by TextMessageCallback(), and TextMessageKey().
|
static |
Definition at line 171 of file main_loop.cpp.
Referenced by TextMessageCallback().