本文整理汇总了C++中CCRotateBy::copy方法的典型用法代码示例。如果您正苦于以下问题:C++ CCRotateBy::copy方法的具体用法?C++ CCRotateBy::copy怎么用?C++ CCRotateBy::copy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCRotateBy
的用法示例。
在下文中一共展示了CCRotateBy::copy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: btnHandler
void BossLottery::btnHandler()
{
int cost = INSTANCE(SystemConfigRule)->getBossLotteryCost();
if(times > 1){
if(cost >= INSTANCE(UserData)->getCurrentMoney()){
INSTANCE(MessageBoxFacade)->showMessageBox("元宝不足,是否充值?", INSTANCE(RechargeFacade), callfunc_selector(RechargeFacade::open),"充值");
return;
}
INSTANCE(UserData)->costCurrentMoney(cost);
INSTANCE(MoneyLayerManager)->createReduceMoney(cost);
}
CCNotificationCenter::sharedNotificationCenter()->postNotification(NoticeUpdateMoney);
btn->setEnabled(false);
closeBtn->setEnabled(false);
int r = INSTANCE(SystemConfigRule)->getWheelMultiple();
result = getMultiple(r);
INSTANCE(BossLotteryFacade)->setBossMultiple(result);
CCRotateBy *rotate = CCRotateBy::create(4.0f, 3600 + r * 60 - 30);
CCEaseInOut *easeInOut = CCEaseInOut::create((CCActionInterval *)rotate->copy()->autorelease(), 1.5f);
CCSequence *action = CCSequence::create(easeInOut,CCCallFunc::create(this, callfunc_selector(BossLottery::rotateComplete)),NULL);
circle->setRotation(0);
circle->runAction(action);
costLabel->setString(CCString::createWithFormat("消耗%d元宝",cost)->getCString());
INSTANCE(UserData)->addWheelTimes(1);
times++;
}