urn posY + OBS_BOX_SIZE * 0.5f; }

        void Reset() {
            style = STYLE_NULL;
            bonusRow = bonusCol = -1;
            memset(grid, 0, sizeof(grid));
        }

        void SetBonus(int col, int row) {
            bonusCol = col;
            bonusRow = row;
        }

        void PutRandomBonus();

        void DeleteBonus() {
            bonusCol = bonusRow = -1;
        }

        bool HasBonus() {
            return bonusRow >= 0 && bonusRow < OBS_GRID_SIZE &&
                    bonusCol >= 0 && bonusCol < OBS_GRID_SIZE &&
                    !grid[bonusCol][bonusRow];
        }
};

#endif

