import React from 'react'; import cn from 'classnames'; import TranslatedComponent from './TranslatedComponent'; import { DamageKinetic, DamageThermal, DamageExplosive } from './SvgIcons'; /** * Movement summary */ export default class MovementSummary extends TranslatedComponent { static PropTypes = { ship: React.PropTypes.object.isRequired }; /** * Constructor * @param {Object} props React Component properties */ constructor(props) { super(props); } /** * Render movement summary * @return {React.Component} contents */ render() { let ship = this.props.ship; let { language, tooltip, termtip } = this.context; let { formats, translate, units } = language; let hide = tooltip.bind(null, null); let boostMultiplier = ship.topBoost / ship.topSpeed; return (

{translate('movement summary')}

  {translate('engine pips')}
  0 1 2 3 4 4B
{translate('speed')} ({units['m/s']}) {formats.int(ship.speeds[0])} {formats.int(ship.speeds[1])} {formats.int(ship.speeds[2])} {formats.int(ship.speeds[3])} {formats.int(ship.speeds[4])} {formats.int(ship.speeds[4] * boostMultiplier)}
{translate('pitch')} ({units['°/s']}) {formats.int(ship.pitches[0])} {formats.int(ship.pitches[1])} {formats.int(ship.pitches[2])} {formats.int(ship.pitches[3])} {formats.int(ship.pitches[4])} {formats.int(ship.pitches[4] * boostMultiplier)}
{translate('roll')} ({units['°/s']}) {formats.int(ship.rolls[0])} {formats.int(ship.rolls[1])} {formats.int(ship.rolls[2])} {formats.int(ship.rolls[3])} {formats.int(ship.rolls[4])} {formats.int(ship.rolls[4] * boostMultiplier)}
{translate('yaw')} ({units['°/s']}) {formats.int(ship.yaws[0])} {formats.int(ship.yaws[1])} {formats.int(ship.yaws[2])} {formats.int(ship.yaws[3])} {formats.int(ship.yaws[4])} {formats.int(ship.yaws[4] * boostMultiplier)}
); } }