void giveDiamondsTick(){ cell_t result; IPluginFunction* func= PUBLIC("EXTGetClientTeam"); for(cell_t i=0;i<MAXPLAYERS;i++){ if(ValidPlayer(i)){ func->CallFunction(&i,1,&result); if(result>1){ diamonds[i]++; } } } }
inline Player Player::OfString (std::string player) { ASSERT(ValidPlayer(player)); if (player == "black") return Player::First(); else return Player::Second(); }