Aw sector from cell

From ActiveWiki
Revision as of 15:57, 28 October 2008 by Macavity (talk | contribs) (Added in, cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 2.1
SDKbuild 13


int aw_sector_from_cell (int cell)

Description

Converts a cell coordinate to a sector coordinate.

Callback

None (returns immediately)

Notes

See Property for a detailed description of the relationship between sectors and cells.

Arguments

cell
Cell coordinate.

Argument attributes

None

Return values

Sector coordinate.

Returned attributes

None

Usage

void convert_cell_to_sector (int cell_x, int cell_z)
{
  printf ("cell (%d, %d) is in sector (%d, %d)\n",
          cell_x,
          cell_z,
          aw_sector_from_cell (cell_x),
          aw_sector_from_cell (cell_z));
}

See also