本文整理汇总了C++中Skill::skill_des方法的典型用法代码示例。如果您正苦于以下问题:C++ Skill::skill_des方法的具体用法?C++ Skill::skill_des怎么用?C++ Skill::skill_des使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skill
的用法示例。
在下文中一共展示了Skill::skill_des方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: disp_unit_info
//--------- Begin of function FirmInn::disp_unit_info ---------//
//
// Display the skill information of the people in the town.
//
// <int> dispY1 - the top y coordination of the info area
// <InnUnit*> hireInfoPtr - pointer to a HireInfo structure
// <int> refreshFlag - refresh flag
//
void FirmInn::disp_unit_info(int dispY1, InnUnit* hireInfoPtr, int refreshFlag)
{
Skill* skillPtr = &(hireInfoPtr->skill);
//---------------- paint the panel --------------//
if( refreshFlag == INFO_REPAINT )
{
vga_util.d3_panel_up( INFO_X1, dispY1, INFO_X2, dispY1+54 );
}
//------ display population composition of this resident town -----//
int x=INFO_X1+4, y=dispY1+4, x1=x+100;
String str;
font_san.field( x, y, _("Combat"), x1, skillPtr->combat_level, 1, INFO_X2-10, refreshFlag );
if( refreshFlag == INFO_REPAINT )
{
font_san.field( x, y+16, skillPtr->skill_des(), x1, skillPtr->skill_level , 1, INFO_X2-10, refreshFlag );
}
else
{
font_san.use_max_height();
font_san.put( x+2, y+18, skillPtr->skill_des(), 1, x1-2 );
font_san.use_std_height();
font_san.update_field( x1, y+16, skillPtr->skill_level, 1, INFO_X2-10);
}
font_san.field( x, y+32, _("Hiring Cost"), x1, hireInfoPtr->hire_cost, 2, INFO_X2-10, refreshFlag);
}