本文整理汇总了C++中Battle::id方法的典型用法代码示例。如果您正苦于以下问题:C++ Battle::id方法的具体用法?C++ Battle::id怎么用?C++ Battle::id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Battle
的用法示例。
在下文中一共展示了Battle::id方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: battle
void BattleInfo::battle(Battle const & battle)
{
battleId_ = battle.id();
setMapImage(battle);
setHeaderText(battle);
}
示例2: userLeftBattle
void BattleInfo::userLeftBattle(User const & user, const Battle & battle)
{
if (battle.id() == battleId_)
{
setHeaderText(battle);
}
}
示例3: battleClosed
void BattleInfo::battleClosed(const Battle & battle)
{
if (battle.id() == battleId_)
{
reset();
}
}
示例4: battleChanged
void BattleInfo::battleChanged(const Battle & battle)
{
if (battle.id() == battleId_)
{
if (currentMapImage_ != battle.mapName())
{
setMapImage(battle);
}
setHeaderText(battle);
}
}
示例5: set_player_roll_point
bool set_player_roll_point(Player* p, uint32_t battle_id, uint32_t roll_id, int32_t roll_flag, int32_t& roll_point)
{
Battle* btl = p->btl;
if(btl->id() != battle_id){
return false;
}
battle_roll_data *pdata = btl->get_battle_roll_data_by_roll_id(roll_id);
if(pdata == NULL){
return false;
}
bool ret = pdata->player_roll_point(roll_id, p->id, roll_point, roll_flag);
if(ret == false){
return false;
}
ret = pdata->is_roll_finish(roll_id);
return pdata->check_delete();
}