DEADSOFTWARE

simple allocation counter for classes
[d2df-sdl.git] / src / game / g_grid.pas
index 1cb2534f9d8fdaaef113598cb828b047c8d5e4d4..0c9da2dbd51d2e03d7e689026499a53812b4d43b 100644 (file)
@@ -26,13 +26,16 @@ unit g_grid;
 
 interface
 
+uses
+  mempool;
+
 const
   GridTileSize = 32; // must be power of two!
 
 type
   TBodyProxyId = Integer;
 
-  generic TBodyGridBase<ITP> = class(TObject)
+  generic TBodyGridBase<ITP> = class(TPoolObject)
   public
     type TGridQueryCB = function (obj: ITP; tag: Integer): Boolean is nested; // return `true` to stop
     type TGridRayQueryCB = function (obj: ITP; tag: Integer; x, y, prevx, prevy: Integer): Boolean is nested; // return `true` to stop