void BorderCellularArray::set(int cell, int x, int y, int centerX, int centerY)
{
    if(!isOutOfBound(x, y, centerX, centerY))
    {
        ToricCellularArray::set(cell, x, y, centerX, centerY);
    }
}
int BorderCellularArray::get(int x, int y, int centerX, int centerY) const
{
    if(!isOutOfBound(x, y, centerX, centerY))
    {
        return ToricCellularArray::get(x, y, centerX, centerY);
    }
    else
    {
        return defaultValue;
    }
}
Пример #3
0
void Bird::contacted()
{
    isOutOfBound();
    deleteItem(60);
    nextItem();
}