예제 #1
0
uint8 TerrainHolder::GetLiquidType(float x, float y)
{
    TerrainTile* tile = GetTile(x, y);

    if (tile == NULL)
        return 0;
    uint8 rv = tile->m_map.GetLiquidType(x, y);
    tile->DecRef();
    return rv;
}
예제 #2
0
float TerrainHolder::GetLiquidHeight(float x, float y)
{
    TerrainTile* tile = GetTile(x, y);

    if (tile == NULL)
        return TERRAIN_INVALID_HEIGHT;
    float rv = tile->m_map.GetLiquidHeight(x, y);
    tile->DecRef();
    return rv;
}
예제 #3
0
uint32 TerrainHolder::GetAreaFlag(float x, float y)
{
    TerrainTile* tile = GetTile(x, y);

    if (tile == NULL)
    {
        // No generated map for this area (usually instances)
        return 0;
    }
    uint32 rv = tile->m_map.GetArea(x, y);
    tile->DecRef();
    return rv;
}