Professional Documents
Culture Documents
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright
information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ACORE_CELL_H
#define ACORE_CELL_H
#include "GridDefines.h"
#include "TypeContainer.h"
#include "TypeContainerVisitor.h"
class Map;
class WorldObject;
struct CellArea
{
CellArea() = default;
CellArea(CellCoord low, CellCoord high) : low_bound(low), high_bound(high) {}
CellCoord low_bound;
CellCoord high_bound;
};
struct Cell
{
Cell() { data.All = 0; }
Cell(Cell const& cell) { data.All = cell.data.All; }
explicit Cell(CellCoord const& p);
explicit Cell(float x, float y);
private:
template<class T, class CONTAINER> void VisitCircle(TypeContainerVisitor<T,
CONTAINER>&, Map&, CellCoord const&, CellCoord const&) const;
};
#endif