Ejemplo n.º 1
0
        public void UpdatePathFinderMapCoords()
        {
            var basePoint = (MapBlock.BlockId - World.TheWorld.AvatarBlockId + LiveMap.ActiveQpoint) * Constants.MAP_BLOCK_SIZE;

            foreach (var point in LiveCoords.GetAllBlockPoints())
            {
                var pnt = basePoint + BaseMapBlock.GetInBlockCoords(point);
                m_liveMap.Cells[point.X, point.Y].PathMapCoords = pnt;
            }
        }
Ejemplo n.º 2
0
        private Point GetCenterLiveCell()
        {
            var inBlock = BaseMapBlock.GetInBlockCoords(World.TheWorld.Avatar.GeoInfo.WorldCoords);

            return(CenterLiveBlock * Constants.MAP_BLOCK_SIZE + inBlock);
        }