1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* Player |
5
|
|
|
* |
6
|
|
|
* @author Gil Clavien |
7
|
|
|
* @copyright Expansion - le jeu |
8
|
|
|
* |
9
|
|
|
* @package Zeus |
10
|
|
|
* @update 20.05.13 |
11
|
|
|
*/ |
12
|
|
|
|
13
|
|
|
namespace Asylamba\Modules\Zeus\Model; |
14
|
|
|
|
15
|
|
|
class Player { |
16
|
|
|
public $id = 0; |
17
|
|
|
public $bind = 0; |
18
|
|
|
public $rColor = 0; |
19
|
|
|
public $rGodfather = NULL; |
20
|
|
|
public $name = ''; |
21
|
|
|
public $sex = 0; |
22
|
|
|
public $description = ''; |
23
|
|
|
public $avatar = ''; |
24
|
|
|
public $status = 1; |
25
|
|
|
public $credit = 0; |
26
|
|
|
public $uPlayer = ''; |
27
|
|
|
public $experience = 0; |
28
|
|
|
public $factionPoint = 0; |
29
|
|
|
public $level = 0; |
30
|
|
|
public $victory = 0; |
31
|
|
|
public $defeat = 0; |
32
|
|
|
public $stepTutorial = 1; |
33
|
|
|
public $stepDone = FALSE; |
34
|
|
|
public $iUniversity = 5000; |
35
|
|
|
public $partNaturalSciences = 25; |
36
|
|
|
public $partLifeSciences = 25; |
37
|
|
|
public $partSocialPoliticalSciences = 25; |
38
|
|
|
public $partInformaticEngineering = 25; |
39
|
|
|
public $dInscription = ''; |
40
|
|
|
public $dLastConnection = ''; |
41
|
|
|
public $dLastActivity = ''; |
42
|
|
|
public $premium = 0; # 0 = publicité, 1 = pas de publicité |
43
|
|
|
public $statement = 0; |
44
|
|
|
|
45
|
|
|
public $synchronized = FALSE; |
46
|
|
|
|
47
|
|
|
const ACTIVE = 1; |
48
|
|
|
const INACTIVE = 2; |
49
|
|
|
const HOLIDAY = 3; |
50
|
|
|
const BANNED = 4; |
51
|
|
|
const DELETED = 5; |
52
|
|
|
const DEAD = 6; |
53
|
|
|
|
54
|
|
|
const STANDARD = 1; |
55
|
|
|
const PARLIAMENT = 2; |
56
|
|
|
const TREASURER = 3; |
57
|
|
|
const WARLORD = 4; |
58
|
|
|
const MINISTER = 5; |
59
|
|
|
const CHIEF = 6; |
60
|
|
|
|
61
|
|
|
public function getId() { return $this->id; } |
|
|
|
|
62
|
|
|
public function getBind() { return $this->bind; } |
|
|
|
|
63
|
|
|
public function getRColor() { return $this->rColor; } |
|
|
|
|
64
|
|
|
public function getName() { return $this->name; } |
|
|
|
|
65
|
|
|
public function getAvatar() { return $this->avatar; } |
|
|
|
|
66
|
|
|
public function getStatus() { return $this->status; } |
|
|
|
|
67
|
|
|
public function getCredit() { return $this->credit; } |
|
|
|
|
68
|
|
|
public function getExperience() { return $this->experience; } |
|
|
|
|
69
|
|
|
public function getLevel() { return $this->level; } |
|
|
|
|
70
|
|
|
public function getVictory() { return $this->victory; } |
|
|
|
|
71
|
|
|
public function getDefeat() { return $this->defeat; } |
|
|
|
|
72
|
|
|
public function getStepTutorial() { return $this->stepTutorial; } |
|
|
|
|
73
|
|
|
public function getDInscription() { return $this->dInscription; } |
|
|
|
|
74
|
|
|
public function getDLastConnection() { return $this->dLastConnection; } |
|
|
|
|
75
|
|
|
public function getDLastActivity() { return $this->dLastActivity; } |
|
|
|
|
76
|
|
|
public function getPremium() { return $this->premium; } |
|
|
|
|
77
|
|
|
public function getStatement() { return $this->statement; } |
|
|
|
|
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return boolean |
81
|
|
|
*/ |
82
|
|
|
public function isSynchronized() |
83
|
|
|
{ |
84
|
|
|
return $this->synchronized; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
public function setId($v) { |
88
|
|
|
$this->id = $v; |
89
|
|
|
return $this; |
90
|
|
|
} |
91
|
|
|
public function setBind($v) { |
92
|
|
|
$this->bind = $v; |
93
|
|
|
return $this; |
94
|
|
|
} |
95
|
|
|
public function setRColor($v) { |
96
|
|
|
$this->rColor = $v; |
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
public function setName($v) { |
100
|
|
|
$this->name = $v; |
101
|
|
|
return $this; |
102
|
|
|
} |
103
|
|
|
public function setAvatar($v) { |
104
|
|
|
$this->avatar = $v; |
105
|
|
|
return $this; |
106
|
|
|
} |
107
|
|
|
public function setStatus($v) |
108
|
|
|
{ |
109
|
|
|
$this->status = $v; |
110
|
|
|
return $this; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
public function setCredit($v) { |
114
|
|
|
$this->credit = $v; |
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
public function setExperience($v) { |
118
|
|
|
$this->experience = $v; |
119
|
|
|
return $this; |
120
|
|
|
} |
121
|
|
|
public function setLevel($v) { |
122
|
|
|
$this->level = $v; |
123
|
|
|
return $this; |
124
|
|
|
} |
125
|
|
|
public function setVictory($v) { |
126
|
|
|
$this->victory = $v; |
127
|
|
|
return $this; |
128
|
|
|
} |
|
|
|
|
129
|
|
|
public function setDefeat($v) { |
130
|
|
|
$this->defeat = $v; |
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
public function setStepTutorial($v) { |
134
|
|
|
$this->stepTutorial = $v; |
135
|
|
|
return $this; |
136
|
|
|
} |
|
|
|
|
137
|
|
|
public function setDInscription($v) { |
138
|
|
|
$this->dInscription = $v; |
139
|
|
|
return $this; |
140
|
|
|
} |
|
|
|
|
141
|
|
|
public function setDLastConnection($v) { |
142
|
|
|
$this->dLastConnection = $v; |
143
|
|
|
return $this; |
144
|
|
|
} |
|
|
|
|
145
|
|
|
public function setDLastActivity($v) { |
146
|
|
|
$this->dLastActivity = $v; |
147
|
|
|
return $this; |
148
|
|
|
} |
|
|
|
|
149
|
|
|
public function setPremium($v) { |
150
|
|
|
$this->premium = $v; |
151
|
|
|
return $this; |
152
|
|
|
} |
|
|
|
|
153
|
|
|
public function setStatement($v) { |
154
|
|
|
$this->statement = $v; |
155
|
|
|
return $this; |
156
|
|
|
} |
|
|
|
|
157
|
|
|
|
158
|
|
|
public function setFactionPoints($factionPoints) |
159
|
|
|
{ |
160
|
|
|
$this->factionPoints = $factionPoints; |
|
|
|
|
161
|
|
|
|
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
public function increaseVictory($i) { |
166
|
|
|
$this->victory += $i; |
167
|
|
|
return $this; |
168
|
|
|
} |
|
|
|
|
169
|
|
|
public function increaseDefeat($i) { |
170
|
|
|
$this->defeat += $i; |
171
|
|
|
return $this; |
172
|
|
|
} |
|
|
|
|
173
|
|
|
|
174
|
|
|
} |
175
|
|
|
|