<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 *--------------------------PVP模块start-----------------------------//
 *比赛需要显示的玩家信息
 *
 * Generated from protobuf message <code>Game.Protobuf.PlayerShow</code>
 */
class PlayerShow extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Gender = 1;</code>
     */
    protected $Gender = 0;
    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData Cloth = 2;</code>
     */
    protected $Cloth = null;
    /**
     * Generated from protobuf field <code>string NickName = 3;</code>
     */
    protected $NickName = '';
    /**
     * Generated from protobuf field <code>int32 Head = 4;</code>
     */
    protected $Head = 0;
    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 5;</code>
     */
    protected $ScuffleScore = 0;
    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 6;</code>
     */
    protected $ContinuityWin = 0;
    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 7;</code>
     */
    protected $SkinColor = 0;
    /**
     *玩家等级
     *
     * Generated from protobuf field <code>int32 Level = 8;</code>
     */
    protected $Level = 0;
    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 9;</code>
     */
    protected $Dan = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Gender
     *     @type \Game\Protobuf\ClothData $Cloth
     *     @type string $NickName
     *     @type int $Head
     *     @type int $ScuffleScore
     *          大乱斗积分
     *     @type int $ContinuityWin
     *          连胜次数
     *     @type int $SkinColor
     *          肤色
     *     @type int $Level
     *          玩家等级
     *     @type int $Dan
     *          段位等级
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 Gender = 1;</code>
     * @return int
     */
    public function getGender()
    {
        return $this->Gender;
    }

    /**
     * Generated from protobuf field <code>int32 Gender = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setGender($var)
    {
        GPBUtil::checkInt32($var);
        $this->Gender = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData Cloth = 2;</code>
     * @return \Game\Protobuf\ClothData|null
     */
    public function getCloth()
    {
        return $this->Cloth;
    }

    public function hasCloth()
    {
        return isset($this->Cloth);
    }

    public function clearCloth()
    {
        unset($this->Cloth);
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData Cloth = 2;</code>
     * @param \Game\Protobuf\ClothData $var
     * @return $this
     */
    public function setCloth($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\ClothData::class);
        $this->Cloth = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string NickName = 3;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

    /**
     * Generated from protobuf field <code>string NickName = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setNickName($var)
    {
        GPBUtil::checkString($var, True);
        $this->NickName = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 Head = 4;</code>
     * @return int
     */
    public function getHead()
    {
        return $this->Head;
    }

    /**
     * Generated from protobuf field <code>int32 Head = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setHead($var)
    {
        GPBUtil::checkInt32($var);
        $this->Head = $var;

        return $this;
    }

    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 5;</code>
     * @return int
     */
    public function getScuffleScore()
    {
        return $this->ScuffleScore;
    }

    /**
     *大乱斗积分
     *
     * Generated from protobuf field <code>int32 ScuffleScore = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setScuffleScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->ScuffleScore = $var;

        return $this;
    }

    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 6;</code>
     * @return int
     */
    public function getContinuityWin()
    {
        return $this->ContinuityWin;
    }

    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setContinuityWin($var)
    {
        GPBUtil::checkInt32($var);
        $this->ContinuityWin = $var;

        return $this;
    }

    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 7;</code>
     * @return int
     */
    public function getSkinColor()
    {
        return $this->SkinColor;
    }

    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setSkinColor($var)
    {
        GPBUtil::checkInt32($var);
        $this->SkinColor = $var;

        return $this;
    }

    /**
     *玩家等级
     *
     * Generated from protobuf field <code>int32 Level = 8;</code>
     * @return int
     */
    public function getLevel()
    {
        return $this->Level;
    }

    /**
     *玩家等级
     *
     * Generated from protobuf field <code>int32 Level = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setLevel($var)
    {
        GPBUtil::checkInt32($var);
        $this->Level = $var;

        return $this;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 9;</code>
     * @return int
     */
    public function getDan()
    {
        return $this->Dan;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setDan($var)
    {
        GPBUtil::checkInt32($var);
        $this->Dan = $var;

        return $this;
    }

}

