麻将代码分析

Q:在哪里设置手里的牌?

GameDesk::onEnter --> GameDesk::DealAllCardAction()
    --> myCardsBatch->SetMyCard(game.GetPlayerData());

修改头像

/*MarkBatch::SetMarkPerson */
    chair = CommonFunction::GetChair(m_Chair, chair);
    Sprite * sIco = (Sprite*)markIco->objectAtIndex(chair); // XXXXX
    sIco->setDisplayFrame(SpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName(ico));
    sIco->setVisible(true);

你可能感兴趣的:(Cocos2dx)