-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser.cpp
More file actions
76 lines (70 loc) · 1.98 KB
/
Copy pathuser.cpp
File metadata and controls
76 lines (70 loc) · 1.98 KB
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
#include "context/user.h"
#include "utils/tarslog.h"
namespace majong
{
namespace context
{
User::User()
: _uid(nil_uid)
, _cid(nil_cid)
, _nick("")
, _url("")
, _netbroken(false)
, _left(false)
, _gender(0)
, _wealth(0)
, _winwealth(0)
{
roundInit();
}
User::User(guid_t uid, cid_t cid, bool robot)
: _uid(uid)
, _cid(cid)
, _robot(robot)
, _nick("")
, _url("")
, _netbroken(false)
, _left(false)
, _gender(0)
, _wealth(0)
, _winwealth(0)
{
roundInit();
}
void User::roundInit()
{
this->_cards.clear();
this->_specards.clear();
this->_done = false;
this->_midsit = false;
this->_fold = false;
this->_allin = false;
this->_act = nil_act;
this->_option = nil_act;
this->_changenum = 0;
this->_round_betnum_list.clear();
this->_robotUserParam.clear();
this->_timeout = 0;
this->_tuoguan = false;
{
_cards.clear();
_hua_cards.clear();
_doorcards.clear();
_opset.clear();
_chi_options.clear();
_apcards.clear();
_vechutype.clear();
_huaction = algorithm::HuAction::Invalid;
_baoting = false;
_is_tianting = false;
_is_ready = false;
_fan = 0;
_draw_count = 0;
_winwealth = 0;
}
}
User::~User()
{
}
};
};