示例#1
0
  public Object_c getObjectByPosition(float x, float y) {
    int caseX = Math.round(x / 32.f);
    int caseY = Math.round(y / 32.f);

    return map_m.getTabMap()[caseX][caseY];
  }
示例#2
0
  public Object_c getObjectsTab(float x, float y) {
    int posX = Math.round((x - Game_c.posXTerrain) / 32.0f);
    int posY = Math.round(y / 32.0f);

    return map_m.getObjectsTab(posX, posY);
  }