blob: 8ded915ca6a51cb0b90436e0acd26e6e463d238b (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
%module quackle
%{
#include "fixedstring.h"
#include "uv.h"
#include "alphabetparameters.h"
#include "move.h"
#include "rack.h"
#include "bag.h"
#include "board.h"
#include "boardparameters.h"
#include "evaluator.h"
#include "catchall.h"
#include "player.h"
#include "game.h"
#include "gameparameters.h"
#include "sim.h"
#include "computerplayer.h"
#include "computerplayercollection.h"
#include "datamanager.h"
#include "endgame.h"
#include "endgameplayer.h"
#include "enumerator.h"
#include "bogowinplayer.h"
#include "clock.h"
#include "generator.h"
#include "gaddag.h"
#include "lexiconparameters.h"
#include "preendgame.h"
#include "reporter.h"
#include "resolvent.h"
#include "strategyparameters.h"
#include <QString>
#include "quackleio/flexiblealphabet.h"
#include "quackleio/util.h"
#include "quackleio/logania.h"
#include "quackleio/gcgio.h"
%}
%include "std_string.i"
%include "std_vector.i"
/*Needed to generate proper iterable types */
%template(MoveVector) std::vector<Quackle::Move>;
%template(PlayerVector) std::vector<Quackle::Player>;
%template(ProbableRackList) std::vector<Quackle::ProbableRack>;
%template(PositionList) std::vector<Quackle::GamePosition>;
%include "fixedstring.h"
%include "uv.h"
%include "alphabetparameters.h"
%include "move.h"
%include "rack.h"
%include "bag.h"
%include "board.h"
%include "boardparameters.h"
%include "evaluator.h"
%include "catchall.h"
%include "player.h"
/* handle output arguments of PlayerList methods using cool SWIG typemaps */
/* what we do here is just to tell SWIG that last bool& argument is an output argument */
%include "typemaps.i"
using namespace std;
namespace Quackle
{
class PlayerList : public vector<Player>
{
public:
PlayerList();
const Player &playerForId(int id, bool &OUTPUT) const;
const Player &playerForName(const UVString &name, bool &OUTPUT) const;
};
}
%include "game.h"
%include "gameparameters.h"
%include "sim.h"
%include "computerplayer.h"
%include "computerplayercollection.h"
%include "datamanager.h"
%include "endgame.h"
%include "endgameplayer.h"
%include "enumerator.h"
%include "bogowinplayer.h"
%include "clock.h"
%include "generator.h"
%include "gaddag.h"
%include "lexiconparameters.h"
%include "preendgame.h"
%include "reporter.h"
%include "resolvent.h"
%include "strategyparameters.h"
%include <QString>
%include "quackleio/flexiblealphabet.h"
%include "quackleio/util.h"
%include "quackleio/logania.h"
%include "quackleio/gcgio.h"
|