X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollision_grid_iterator.h;h=3d566616164265a1f5ca0829358cdb7458e1e2dc;hb=c62a9b627722f6371877c4dcbc218c60edb58559;hp=efed0b4ef19e9fcd8f95f9ff1d15f5a80a34a4f3;hpb=9599042661b468aae7bd34dca05441c0ebc93ad7;p=supertux.git diff --git a/src/collision_grid_iterator.h b/src/collision_grid_iterator.h index efed0b4ef..3d5666161 100644 --- a/src/collision_grid_iterator.h +++ b/src/collision_grid_iterator.h @@ -1,16 +1,33 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2005 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. #ifndef __COLLISION_GRID_ITERATOR_H__ #define __COLLISION_GRID_ITERATOR_H__ -#include "math/rectangle.h" - -using namespace SuperTux; +#include "math/rect.h" class CollisionGrid; class CollisionGridIterator { public: - CollisionGridIterator(CollisionGrid& newgrid, const Rectangle& bbox) + CollisionGridIterator(CollisionGrid& newgrid, const Rect& bbox) : grid(newgrid) { start_x = int(bbox.p1.x / grid.cell_width) - 2;