1 | <?php |
||
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; } |
||
78 | |||
79 | /** |
||
80 | * @return boolean |
||
81 | */ |
||
82 | public function isSynchronized() |
||
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) { |
||
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; |
||
173 | |||
174 | } |
||
175 |