[10610] Renamed some functions from the Creature class

Also other classes have been affected, due to the use of search&replace.
This will probably break some patches and 3rd party libraries, so make sure to update them if required.
Thanks to Phille for the original idea and patch!
This commit is contained in:
DasBlub 2010-10-14 21:56:40 +02:00
parent d090bce461
commit 61102e3b16
50 changed files with 305 additions and 305 deletions

View file

@ -186,7 +186,7 @@ template<>
void Map::AddToGrid(Creature* obj, NGridType *grid, Cell const& cell)
{
// add to world object registry in grid
if(obj->isPet() || obj->isVehicle())
if(obj->IsPet() || obj->IsVehicle())
{
(*grid)(cell.CellX(), cell.CellY()).AddWorldObject<Creature>(obj);
obj->SetCurrentCell(cell);
@ -230,7 +230,7 @@ template<>
void Map::RemoveFromGrid(Creature* obj, NGridType *grid, Cell const& cell)
{
// remove from world object registry in grid
if(obj->isPet() || obj->isVehicle())
if(obj->IsPet() || obj->IsVehicle())
{
(*grid)(cell.CellX(), cell.CellY()).RemoveWorldObject<Creature>(obj);
}
@ -1595,7 +1595,7 @@ void Map::AddToActive( WorldObject* obj )
{
Creature* c= (Creature*)obj;
if (!c->isPet() && c->GetDBTableGUIDLow())
if (!c->IsPet() && c->GetDBTableGUIDLow())
{
float x,y,z;
c->GetRespawnCoord(x,y,z);
@ -1630,7 +1630,7 @@ void Map::RemoveFromActive( WorldObject* obj )
{
Creature* c= (Creature*)obj;
if(!c->isPet() && c->GetDBTableGUIDLow())
if(!c->IsPet() && c->GetDBTableGUIDLow())
{
float x,y,z;
c->GetRespawnCoord(x,y,z);