MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / loungeControl

Method loungeControl

source/game/StarVehicle.cpp:483–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void Vehicle::loungeControl(size_t index, LoungeControl loungeControl) {
484 auto& loungePosition = m_loungePositions.valueAt(index);
485 if (isSlave())
486 loungePosition.slaveNewControls.add(loungeControl);
487 else
488 loungePosition.masterControlState[loungeControl].masterHeld = true;
489}
490
491void Vehicle::loungeAim(size_t index, Vec2F const& aimPosition) {
492 auto& loungePosition = m_loungePositions.valueAt(index);

Callers 2

specialMethod · 0.45
processControlsMethod · 0.45

Calls 2

valueAtMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected