Map::Map(char *nodesFile, char *buildingsFile) :Object3d(Point()), topLeftMapPoint(Point(+1000000, 0, +1000000)), bottomRightPoint(Point(-1000000, 0, -100000)) { currentWayName = NULL; loadNodes(nodesFile); loadBuildings(buildingsFile); initQuadTree(); initMinimap(); }
void PhysicsQuadTreeSpace::changed(ConstFieldMaskArg whichField, UInt32 origin, BitVector details) { Inherited::changed(whichField, origin, details); //Do not respond to changes that have a Sync origin if(origin & ChangedOrigin::Sync) { return; } if((whichField & CenterFieldMask) || (whichField & ExtentFieldMask) || (whichField & DepthFieldMask)) { initQuadTree(_SpaceID); } }
void PhysicsQuadTreeSpace::onCreate(const PhysicsQuadTreeSpace *id /* = NULL */) { initQuadTree(0); }