<?php

namespace Test\Rank;

use Framework\MVC\ModelManager;
use Game\Constant\ModelTypeDefine;
use Game\Logic\Pvp\PvpLogic;
use Game\Logic\RankLogic;
use Game\Model\PaiweiLevelModel;
use Game\Model\Rank\RankModel;
use Test\TestBase;

class TestRank extends TestBase
{
    use RankLogic;
    use PvpLogic;
    public function getPlayerId(): int
    {
//        return 288753307265945602;
        return 288671698593202449;
//        return 2;
//        return 4;
    }

    public function startTest()
    {
//        $this->changeRankScore(8, 2);
//        $this->findRankData(8, 0);
//        $this->findRankData(9, 0);
//        $this->findRankData(6, 3);
//        /**
//         * @var RankModel $rankModel
//         */
//        $rankModel = ModelManager::getInstance()->getModel(ModelTypeDefine::RANKING);
//        $res = $rankModel->getSignData();
//        var_dump($res);
//        $bePlayerID = 288758199234482887;
//        $this->rankLike(6, 3, $bePlayerID);

//        $this->findRankData(8);
//        /**
//         * @var PaiweiLevelModel $pwModel
//         */
//        $pwModel = ModelManager::getInstance()->getModel(ModelTypeDefine::PAIWEI_LEVEL);
//        $pwModel->changeScore(110, 0);

//        $this->changeRankMap(128254, 3);
        $this->clearRankInfo(7, 3);
    }
}
