int ShengNv::p_boot(int &step, int currentPlayerID) { int ret = GE_INVALID_STEP; step = LIAN_MIN; if (currentPlayerID != id || getGem() == 0 || tap) return GE_SUCCESS; ret = LianMin(); if(toNextStep(ret)) { step = STEP_DONE; } return ret; }
Gem* GemManager::getRandomTypeGem() { return getGem( rand()%this->mGems.size() ); }