Commit graph

25 commits

Author SHA1 Message Date
VladimirMangos
c2096380cf [10752] Convert to objetguids map scripts and finally drop IS_PLAYER_GUID. 2010-11-20 02:38:56 +03:00
Tasssadar
d53fe93e9d [10640] Implement instance guids with proper HIGHGUID_INSTANCE use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-24 14:54:11 +04:00
VladimirMangos
4598224659 [10542] Fixed ObjectGuid::IsUnit
Also some better string format for pet guid case.

Thanks to zergtmn for find problem.
2010-09-26 18:33:57 +04:00
VladimirMangos
22b515718f [10380] Finaly drop MAKE_NEW_GUID.
This meaning that ObjectGuid only proper way create guid from lowguid now.
But packet handlers still generate uint64 guids. Some DB fields also loaded uint64 values.

Also possible existed not catches et uint32->uint64 assigns.
2010-08-19 12:51:16 +04:00
CipherCOM
6600fc842f [10369] Implement UNORDERED_SET support.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added compatibility code for old Visual Studio versions
for non standard way hash calculation for hash_set.

Thanks to Lynx3D for help in Unix side testing.
2010-08-18 04:37:08 +04:00
VladimirMangos
fbf4c5b3b4 [10366] Add portable way for hash specialization adding.
Use it for ObjectGuid hash specialization
2010-08-18 01:13:42 +04:00
VladimirMangos
5f44c4da21 [10363] More wide use ObjectGuid in way remove MAKE_NEW_GUID uses.
Also
* Fixed some amount wrong uses low guids as full player guids.
* Add private without body ObjectGuid(uint32 const&) for catch wrong assigns low guids to ObjectGuid.
  In some cases need assign "0" guid, then use ObjectGuid() instead.
* Fixed .pdump commands work.
2010-08-17 08:22:28 +04:00
VladimirMangos
696a4b6db0 [9918] Fixed player's tapped creature loot access by group in diff cases
* If player tap creature in group and leave then group will have access to creature loot if not disbanded
* If player tap creature and after join to group then creature loot will accesable only by player
* Also RewardPlayerAndGroupAtKill divided to simgle player and group reward versions used for group tap
  and single player tap cases.
2010-05-17 12:56:57 +04:00
NoFantasy
5a72466935 [9890] Add TYPEMASK_WORLDOBJECT to enum TypeMask
Check typemask and replace a few dynamic_cast with more simple casts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-13 17:51:49 +02:00
VladimirMangos
20162b6db4 [9724] Temporary back to 0 player highguid.
This is resolve "none from players see each other" problem.
Please, reapply non-0 player guid only with or after this problem resolve.

Some ObjectGuid use cleanups added while reseach porblem source.
2010-04-11 05:36:05 +04:00
tomrus88
dc1bb13c72 [9721] Updated high guids. Renamed few files. Added some comments. 2010-04-10 16:59:30 +04:00
VladimirMangos
c3e07a443d [9620] Resolve linking problems for script DLLs 2010-03-26 06:54:33 +03:00
VladimirMangos
b658b25ff8 [9618] More use ObjectGuid in spell/etc code 2010-03-25 13:59:46 +03:00
zhenya
0bf2d2b71a [9614] Objects HIGHGUID_MO_TRANSPORT not have entry part in guid.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-24 22:57:48 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
VladimirMangos
2bf75e7a10 111 2010-03-13 16:12:13 +03:00
VladimirMangos
8416702d7c [9579] Use ObjectGuid in some loot code.
Also use ObjectGuidSet instead std::set<ObjectGuid>
2010-03-13 14:06:27 +03:00
VladimirMangos
acde81fc54 [9578] Use ObjectGuid in visibility sets 2010-03-12 22:54:14 +03:00
VladimirMangos
a12fecab0d [9575] Use ObjectGuid in Map object stores/world access/search. 2010-03-12 14:38:38 +03:00
VladimirMangos
c4f3578226 [9571] Create and use ObjectGuidGenerator/IdGenerator template classes.
* This is let finally hide guid structure in ObjectGuid.h/.cpp code.
* Shared related code.

NOTE: while switch to use new clasess one more problem has been detected
with not-safe code in .pdump work for future per-map multi-threading.
It's need rewrited before will possible safe use in like case.
For current single world thread case it's safe.
2010-03-11 16:32:09 +03:00
VladimirMangos
17d8c4d075 [9553] Make GCC really happy... 2010-03-08 23:42:28 +03:00
VladimirMangos
c8fd454a79 [9551] Add and use PackedGuid wrapper.
Also
* use more wide bytebuff << >> operators for objects
* use at read packet faisl alsways exception way instead some time used bool results.
2010-03-08 20:23:16 +03:00
VladimirMangos
7dc6b131c8 [9549] One more typo :/ 2010-03-08 01:07:23 +03:00
VladimirMangos
93ad67fc9d [9547] Implement ObjectGuid wrapper for guid value
Only one example (mostly) case converted to use it.
Need lot work for finally switch to class obly use, so old low-level defines still exist also (while used).
But some unused low-level defines dropped.
2010-03-08 00:46:04 +03:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
Renamed from src/game/ObjectDefines.h (Browse further)