/* rugby-scoring.h
 *
 * Copyright © 2012, 2017 Bruce Cowan <bruce@bcowan.eu>
 *
 * This file is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of the
 * License, or (at your option) any later version.
 *
 * This file is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include <gio/gio.h>

G_BEGIN_DECLS

#define TRY_POINTS 7
#define UTRY_POINTS 5
#define KICK_POINTS 3

typedef enum
{
    RUGBY_SCORE_TYPE_TRY,
    RUGBY_SCORE_TYPE_UTRY,
    RUGBY_SCORE_TYPE_KICK
} RugbyScoreType;

void        rugby_scoring_get_possibilities (GListStore *model,
                                             gint        score);
gint        rugby_scoring_get_max_tries     (gint        score);
gint        rugby_scoring_get_max_kicks     (gint        score);

G_END_DECLS