示例#1
0
function takeover_process_biddings($biddings, $winner)
{
    foreach ($biddings as $bidding) {
        if ($bidding['rel_bidding'] >= GameConstants::TAKEOVER_MIN_RESOURCE_VALUE) {
            takeover_send_failed($bidding['playerID'], $bidding, $winner);
        } else {
            takeover_send_bidding_too_low($bidding['playerID'], $bidding, $winner);
        }
    }
}
示例#2
0
function takeover_process_biddings($biddings, $winner)
{
    global $TAKEOVERMINRESOURCEVALUE;
    foreach ($biddings as $bidding) {
        if ($bidding['rel_bidding'] >= $TAKEOVERMINRESOURCEVALUE) {
            takeover_send_failed($bidding['playerID'], $bidding, $winner);
        } else {
            takeover_send_bidding_too_low($bidding['playerID'], $bidding, $winner);
        }
    }
}