本文整理汇总了C++中Object2D::GetInstance方法的典型用法代码示例。如果您正苦于以下问题:C++ Object2D::GetInstance方法的具体用法?C++ Object2D::GetInstance怎么用?C++ Object2D::GetInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Object2D
的用法示例。
在下文中一共展示了Object2D::GetInstance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PokerGameInit
bool PokerGame::PokerGameInit()
{
ActivateHiloGambleGraphics = 0;
SetGameIndex(Game100p);
DisplayStake();
HoldHiloGraphics = false;
HiloEnteredOnAP = false;
for (i=0; i<MAX_AWARDS; i++)
{
AwardDigitColour[i] = 1;
AwardValueLitState[i] = 0;
}
for (i=0; i<5; i++)
{
PokerHand[i].id = 0;
PokerHand[i].hold = 0;
HiloHand[i].id = 0;
HiloHand[i].state = 0;
}
AwardTable[0][0] = 100;
AwardTable[0][1] = 200;
AwardTable[0][2] = 300;
AwardTable[0][3] = 400;
AwardTable[0][4] = 600;
AwardTable[0][5] = 1000;
AwardTable[0][6] = 2500;
AwardTable[0][7] = 4000;
AwardTable[0][8] = 6000;
AwardTable[0][9] = 10000;
AwardTable[0][10]= 15000;
AwardTable[0][11]= 25000;
AwardTable[0][12]= 50000;
AwardTable[1][0] = 200;
AwardTable[1][1] = 400;
AwardTable[1][2] = 600;
AwardTable[1][3] = 800;
AwardTable[1][4] = 1200;
AwardTable[1][5] = 2000;
AwardTable[1][6] = 5000;
AwardTable[1][7] = 8000;
AwardTable[1][8] = 12000;
AwardTable[1][9] = 20000;
AwardTable[1][10]= 30000;
AwardTable[1][11]= 50000;
AwardTable[1][12]= 50000;
AwardValuesX = 710;
AwardValuesY[12] = 41;
AwardValuesY[11] = 79;
AwardValuesY[10] = 114;
AwardValuesY[9] = 149;
AwardValuesY[8] = 185;
AwardValuesY[7] = 222;
AwardValuesY[6] = 257;
AwardValuesY[5] = 291;
AwardValuesY[4] = 329;
AwardValuesY[3] = 364;
AwardValuesY[2] = 399;
AwardValuesY[1] = 434;
AwardValuesY[0] = 483;
Object2D* allCards = OBJECT_HANDLER->GetObject2D("Cards");
allCards->GetInstance(0)->SetCurrentSprite(54);
allCards->GetInstance(1)->SetCurrentSprite(54);
allCards->GetInstance(2)->SetCurrentSprite(54);
allCards->GetInstance(3)->SetCurrentSprite(54);
allCards->GetInstance(4)->SetCurrentSprite(54);
InitializeCardButtonArray();
return true;
}