本文整理汇总了C++中Ufo::isCrashed方法的典型用法代码示例。如果您正苦于以下问题:C++ Ufo::isCrashed方法的具体用法?C++ Ufo::isCrashed怎么用?C++ Ufo::isCrashed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ufo
的用法示例。
在下文中一共展示了Ufo::isCrashed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
_btnCancel->setColor(Palette::blockOffset(8)+5);
_btnCancel->setText(_game->getLanguage()->getString("STR_CANCEL_UC"));
_btnCancel->onMouseClick((ActionHandler)&GeoscapeCraftState::btnCancelClick);
_txtTitle->setColor(Palette::blockOffset(15)-1);
_txtTitle->setBig();
_txtTitle->setText(_craft->getName(_game->getLanguage()));
_txtStatus->setColor(Palette::blockOffset(15)-1);
_txtStatus->setSecondaryColor(Palette::blockOffset(8)+10);
std::wstringstream ss;
ss << _game->getLanguage()->getString("STR_STATUS_") << L'\x01';
if (_waypoint != 0)
{
ss << _game->getLanguage()->getString("STR_INTERCEPTING_UFO") << _waypoint->getId();
}
else if (_craft->getLowFuel())
{
ss << _game->getLanguage()->getString("STR_LOW_FUEL_RETURNING_TO_BASE");
}
else if (_craft->getDestination() == 0)
{
ss << _game->getLanguage()->getString("STR_PATROLLING");
}
else if (_craft->getDestination() == (Target*)_craft->getBase())
{
ss << _game->getLanguage()->getString("STR_RETURNING_TO_BASE");
}
else
{
Ufo *u = dynamic_cast<Ufo*>(_craft->getDestination());
if (u != 0)
{
if (!u->isCrashed())
{
ss << _game->getLanguage()->getString("STR_INTERCEPTING_UFO") << u->getId();
}
else
{
ss << _game->getLanguage()->getString("STR_DESTINATION_UC") << u->getName(_game->getLanguage());
}
}
else
{
ss << _game->getLanguage()->getString("STR_DESTINATION_UC") << _craft->getDestination()->getName(_game->getLanguage());
}
}
_txtStatus->setText(ss.str());
_txtBase->setColor(Palette::blockOffset(15)-1);
_txtBase->setSecondaryColor(Palette::blockOffset(8)+5);
std::wstringstream ss2;
ss2 << _game->getLanguage()->getString("STR_BASE_UC_") << L'\x01' << _craft->getBase()->getName();
_txtBase->setText(ss2.str());
_txtSpeed->setColor(Palette::blockOffset(15)-1);
_txtSpeed->setSecondaryColor(Palette::blockOffset(8)+5);
std::wstringstream ss3;
ss3 << _game->getLanguage()->getString("STR_SPEED_") << L'\x01' << _craft->getSpeed();
_txtSpeed->setText(ss3.str());
_txtMaxSpeed->setColor(Palette::blockOffset(15)-1);
_txtMaxSpeed->setSecondaryColor(Palette::blockOffset(8)+5);
std::wstringstream ss4;
ss4 << _game->getLanguage()->getString("STR_MAXIMUM_SPEED_UC") << L'\x01' << _craft->getRules()->getMaxSpeed();
_txtMaxSpeed->setText(ss4.str());