solo_private.h 2.11 KB
Newer Older
Vivien Kraus's avatar
Vivien Kraus committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* tarot implements the rules of the tarot game
 * Copyright (C) 2019  Vivien Kraus
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version.
 *
 * This program 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
 * 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/>.
 */

#ifndef H_TAROT_SOLO_PRIVATE_INCLUDED
#define H_TAROT_SOLO_PRIVATE_INCLUDED

#include <stddef.h>
#include <tarot_private.h>
#include <tarot/solo.h>

#ifdef __cplusplus
extern "C"
{
#endif                          /* __cplusplus */
  static size_t solo_construct (size_t max_mem, char *mem_out,
                                size_t *alignment);
  static void solo_copy (TarotSolo * dest, const TarotSolo * source);
  static void solo_copy_as (TarotSolo * dest, const TarotSolo * source,
                            TarotPlayer who);
  static void solo_get (const TarotSolo * solo, TarotGame * game);
  static TarotGameError solo_setup (TarotSolo * solo, size_t n_players,
                                    int with_call, TarotPlayer myself,
                                    size_t n_owners,
                                    const TarotPlayer * owners,
                                    TarotPlayer taker, TarotCard call);
  static TarotGameError solo_setup_random (TarotSolo * solo, size_t n_players,
                                           int with_call, size_t seed_size,
                                           const unsigned char *seed);
  static TarotGameError solo_add (TarotSolo * solo,
                                  const TarotGameEvent * event);

#ifdef __cplusplus
}
#endif                          /* __cplusplus */

#endif                          /* not H_TAROT_SOLO_PRIVATE_INCLUDED */