Example #1
0
 public WorldPigeon()
 {
     mListPeginInfo = new List <PigeonInfo>();
     mSendTime      = new GameBase.Core.TimeOut();
     mSendTime.SetInterval(GameBase.Config.Define.WORDPIGEONSENDITME);
     mSendTime.Update();
     mFuckTick = System.Environment.TickCount;
 }
Example #2
0
        private GameBase.Core.TimeOut mSendTime; //发送定时器

        #endregion Fields

        #region Constructors

        public WorldPigeon()
        {
            mListPeginInfo = new List<PigeonInfo>();
            mSendTime = new GameBase.Core.TimeOut();
            mSendTime.SetInterval(GameBase.Config.Define.WORDPIGEONSENDITME);
            mSendTime.Update();
               mFuckTick = System.Environment.TickCount;
        }
Example #3
0
        public WangNianWuLing(PlayerObject _play, short x, short y, byte dir, uint _id, int nAi_Id)
            : base(_id, nAi_Id,x,y, false)
        {
            type = OBJECTTYPE.CALLOBJECT;
            typeid = IDManager.CreateTypeId(OBJECTTYPE.GUARDKNIGHT);
            SetPoint(x, y);
            mRebirthTime = 0;//不允许复活

            mPlay = _play;
            SetDir(dir);
            mnRefreshTick = System.Environment.TickCount;
            mAddHP_Time = new TimeOut();
            mAddHP_Time.SetInterval(2);
        }
Example #4
0
 public void SetTransmitIng(bool v)
 {
     mbTransmit = v;
     if (mTransmitTimeOut == null)
     {
         mTransmitTimeOut = new GameBase.Core.TimeOut();
     }
     mTransmitTimeOut.SetInterval(1);
     mTransmitTimeOut.Update();
 }
Example #5
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;
        }