Atavism Version 2018.1AGIS API

atavism.server.pathing.crowd
Class ProximityGrid

java.lang.Object
  extended by atavism.server.pathing.crowd.ProximityGrid

public class ProximityGrid
extends java.lang.Object


Constructor Summary
ProximityGrid()
           
 
Method Summary
 void AddItem(int id, float minx, float miny, float maxx, float maxy)
           
 int[] Bounds()
           
 float CellSize()
           
 void Clear()
           
 int GetItemCountAt(int x, int y)
           
 int HashPos2(int x, int y, int n)
           
 java.lang.Boolean Init(int poolSize, float cellSize)
           
 int QueryItems(float minx, float miny, float maxx, float maxy, int[] ids, int maxIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProximityGrid

public ProximityGrid()
Method Detail

Init

public java.lang.Boolean Init(int poolSize,
                              float cellSize)

Clear

public void Clear()

AddItem

public void AddItem(int id,
                    float minx,
                    float miny,
                    float maxx,
                    float maxy)

QueryItems

public int QueryItems(float minx,
                      float miny,
                      float maxx,
                      float maxy,
                      int[] ids,
                      int maxIds)

GetItemCountAt

public int GetItemCountAt(int x,
                          int y)

Bounds

public int[] Bounds()

CellSize

public float CellSize()

HashPos2

public int HashPos2(int x,
                    int y,
                    int n)


Copyright © 2018 Dragonsan Studios Sp. z o.o.