コード例 #1
0
ファイル: Mobile.cs プロジェクト: HankTheDrunk/UltimaXNA
        // ============================================================
        // Ctor, Dispose, Update, and CreateView()
        // ============================================================
        public Mobile(Serial serial, Map map)
            : base(serial, map)
        {
            Equipment = new MobileEquipment(this);
            m_movement = new MobileMovement(this);
            m_movement.RequiresUpdate = true;

            Health = new CurrentMaxValue();
            Stamina = new CurrentMaxValue();
            Mana = new CurrentMaxValue();
            Followers = new CurrentMaxValue();
            Weight = new CurrentMaxValue();
            Flags = new MobileFlags();
        }
コード例 #2
0
ファイル: Mobile.cs プロジェクト: InjectionDev/UltimaXNA
        // ============================================================
        // Ctor, Dispose, Update, and CreateView()
        // ============================================================

        public Mobile(Serial serial, Map map)
            : base(serial, map)
        {
            Equipment  = new MobileEquipment(this);
            m_movement = new MobileMovement(this);
            m_movement.RequiresUpdate = true;

            Health    = new CurrentMaxValue();
            Stamina   = new CurrentMaxValue();
            Mana      = new CurrentMaxValue();
            Followers = new CurrentMaxValue();
            Weight    = new CurrentMaxValue();
            Flags     = new MobileFlags();
        }