-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnndef.cpp
More file actions
38 lines (31 loc) · 943 Bytes
/
Copy pathnndef.cpp
File metadata and controls
38 lines (31 loc) · 943 Bytes
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
#include "common/nndef.h"
namespace nndef
{
namespace nncard
{
card_t getNNType(card_t card)
{
return card & 0x00f0;
}
card_t getNNValue(card_t card)
{
return (card & 0x000f) > 10 ? 10 : (card & 0x000f);
}
card_t getNNNum(card_t card)
{
return card & 0x000f;
}
};
namespace nninvalid
{
using namespace nnuser;
using namespace nncard;
guid_t nil_uid = static_cast<guid_t>(-1);
cid_t nil_cid = static_cast<cid_t>(-1);
card_t nil_card = static_cast<card_t>(-1);
E_NN_ACT nil_act = static_cast<E_NN_ACT>(-1);
E_NN_TYPE nil_nntype = static_cast<E_NN_TYPE>(-1);
E_NN_GUESS nil_guess = static_cast<E_NN_GUESS>(-1);
E_NN_STATE nil_nnstate = static_cast<E_NN_STATE>(-1);
};
};