Пример #1
0
 public void SetTeam(Team _team)
 {
     mTeam = _team;
 }
Пример #2
0
 //创建队伍.返回队伍id
 public Team CreateTeam()
 {
     mID++;
     Team team = new Team(mID);
     mListTeam.Add(team);
     mListTeam.Add(team);
     return team;
 }
Пример #3
0
        private byte sex = Sex.MAN; //性别

        #endregion Fields

        #region Constructors

        public PlayerObject()
        {
            mAttribute = new GameStruct.PlayerAttribute();
            type = OBJECTTYPE.PLAYER;
            typeid = IDManager.CreateTypeId(type);
            Name = "";
            lastattacktime = System.Environment.TickCount;

            mMenuLink = new Dictionary<byte, uint>();

            mItemSystem = new PlayerItem(this);
            mMagicSystem = new PlayerMagic(this);
            mTimerSystem = new PlayerTimer(this);
            mFightSystem = new PlayerFight(this);
            mEudemonSystem = new PlayerEudemon(this);
            mFriendSystem = new PlayerFriend(this);
            mTradSystem = new PlayerTrad(this);
            mLegionSystem = new PlayerLegion(this);
            mPKSystem = new PlayerPK(this);
            mListHotKey = new List<GameStruct.HotkeyInfo>();
            mZhaoHuanWuHuanObj = null;
            mTeam = null;
            m_bGhost = false;
            mnGhostTick = System.Environment.TickCount;
            mTarget = null;

            mSaveTime = new GameBase.Core.TimeOut();
            mSaveTime.SetInterval(GameBase.Config.Define.SAVEROLE_TIME);
            mnCurrentRandom = 0;
        }