repo.or.cz
/
tagua
/
yd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Factor declaration of shogi characters.
[tagua/yd.git]
/
templates
/
variant_template.h.erb
blob
fdda3efb4ae8577b15c61e7815a5e45073a9eed8
1
<% vtag = "#{variant.upcase}VARIANT_H" %>
2
<% cvariant = variant.capitalize %>
3
4
#ifndef <%= vtag %>
5
#define <%= vtag %>
6
7
#include "chess.h"
8
9
class <%= cvariant %>Variant {
10
private:
11
static VariantInfo* static_<%= variant %>_variant;
12
public:
13
static VariantInfo* info();
14
};
15
16
#endif // <%= vtag %>