Show
Ignore:
Timestamp:
11/19/08 13:23:29 (17 years ago)
Author:
yumileroy
Message:

[svn] * Little fix in RandomMovementGenerator?
* Updated to 6731 and 680

Original author: Neo2003
Date: 2008-10-06 04:48:59-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/ObjectMgr.h

    r9 r18  
    229229typedef HM_NAMESPACE::hash_map<uint32, uint32> CacheNpcTextIdMap; 
    230230 
    231 // Vendors 
    232 struct VendorItem 
    233 { 
    234     uint32 item; 
    235     uint32 maxcount; 
    236     uint32 incrtime; 
    237     uint32 ExtendedCost; 
    238 }; 
    239 typedef std::vector<VendorItem*> VendorItemList; 
    240  
    241 typedef HM_NAMESPACE::hash_map<uint32, VendorItemList> CacheVendorItemMap; 
    242  
     231 
     232typedef HM_NAMESPACE::hash_map<uint32, VendorItemData> CacheVendorItemMap; 
    243233typedef HM_NAMESPACE::hash_map<uint32, TrainerSpellData> CacheTrainerSpellMap; 
    244234 
     
    258248 
    259249bool normalizePlayerName(std::string& name); 
     250 
     251struct MANGOS_DLL_SPEC LanguageDesc 
     252{ 
     253    Language lang_id; 
     254    uint32   spell_id; 
     255    uint32   skill_id; 
     256}; 
     257 
     258extern LanguageDesc lang_description[LANGUAGES_COUNT]; 
     259MANGOS_DLL_SPEC LanguageDesc const* GetLanguageDescByID(uint32 lang); 
    260260 
    261261class PlayerDumpReader; 
     
    733733        } 
    734734 
    735         VendorItemList const* GetNpcVendorItemList(uint32 entry) const 
     735        VendorItemData const* GetNpcVendorItemList(uint32 entry) const 
    736736        { 
    737737            CacheVendorItemMap::const_iterator  iter = m_mCacheVendorItemMap.find(entry); 
     
    741741            return &iter->second; 
    742742        } 
     743        void AddVendorItem(uint32 entry,uint32 item, uint32 maxcount, uint32 incrtime, uint32 ExtendedCost); 
     744        bool RemoveVendorItem(uint32 entry,uint32 item); 
     745        bool IsVendorItemValid( uint32 vendor_entry, uint32 item, uint32 maxcount, uint32 ptime, uint32 ExtendedCost, Player* pl = NULL ) const; 
    743746    protected: 
    744747        uint32 m_auctionid;