1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* RecyclingMission |
5
|
|
|
* |
6
|
|
|
* @author Jacky Casas |
7
|
|
|
* @copyright Asylamba |
8
|
|
|
* |
9
|
|
|
* @package Zeus |
10
|
|
|
* @update 09.02.15 |
11
|
|
|
*/ |
12
|
|
|
namespace Asylamba\Modules\Athena\Model; |
13
|
|
|
|
14
|
|
|
class RecyclingMission { |
15
|
|
|
|
16
|
|
|
const ST_DELETED = 0; |
17
|
|
|
const ST_ACTIVE = 1; |
18
|
|
|
const ST_BEING_DELETED = 2; |
19
|
|
|
|
20
|
|
|
const RECYCLER_CAPACTIY = 400; |
21
|
|
|
const RECYCLING_TIME = 28800; # 8 hours, in seconds |
22
|
|
|
const COEF_SHIP = 1.6; # to convert points to resource for ships |
23
|
|
|
# coef_ship a été calculé par un ingénieur. Si on change la capacité, il faut rechanger coef_ship |
24
|
|
|
|
25
|
|
|
public $id = 0; |
26
|
|
|
public $rBase = 0; |
27
|
|
|
public $rTarget = 0; |
28
|
|
|
public $cycleTime = 0; |
29
|
|
|
public $recyclerQuantity = 0; |
30
|
|
|
public $addToNextMission = 0; |
31
|
|
|
public $uRecycling = ''; |
32
|
|
|
public $statement = 1; |
33
|
|
|
|
34
|
|
|
public $typeOfPlace; |
35
|
|
|
public $position; |
36
|
|
|
public $population; |
37
|
|
|
public $coefResources; |
38
|
|
|
public $coefHistory; |
39
|
|
|
public $resources; |
40
|
|
|
public $systemId; |
41
|
|
|
public $xSystem; |
42
|
|
|
public $ySystem; |
43
|
|
|
public $typeOfSystem; |
44
|
|
|
public $sectorId; |
45
|
|
|
|
46
|
|
|
public function getId() { return $this->id; } |
|
|
|
|
47
|
|
|
public function getRBase() { return $this->rBase; } |
|
|
|
|
48
|
|
|
public function getRTarget() { return $this->rTarget; } |
|
|
|
|
49
|
|
|
public function getCycleTime() { return $this->cycleTime; } |
|
|
|
|
50
|
|
|
public function getRecyclerQuantity() { return $this->recyclerQuantity; } |
|
|
|
|
51
|
|
|
public function getAddToNextMission() { return $this->addToNextMission; } |
|
|
|
|
52
|
|
|
public function getURecycling() { return $this->uRecycling; } |
|
|
|
|
53
|
|
|
public function getStatement() { return $this->statement; } |
|
|
|
|
54
|
|
|
|
55
|
|
|
public function getTypeOfPlace() { return $this->typeOfPlace; } |
|
|
|
|
56
|
|
|
public function getPosition() { return $this->position; } |
|
|
|
|
57
|
|
|
public function getPopulation() { return $this->population; } |
|
|
|
|
58
|
|
|
public function getCoefResources() { return $this->coefResources; } |
|
|
|
|
59
|
|
|
public function getCoefHistory() { return $this->coefHistory; } |
|
|
|
|
60
|
|
|
public function getResources() { return $this->resources; } |
|
|
|
|
61
|
|
|
public function getSystemId() { return $this->systemId; } |
|
|
|
|
62
|
|
|
public function getXSystem() { return $this->xSystem; } |
|
|
|
|
63
|
|
|
public function getYSystem() { return $this->ySystem; } |
|
|
|
|
64
|
|
|
public function getTypeOfSystem() { return $this->typeOfSystem; } |
|
|
|
|
65
|
|
|
public function getSectorId() { return $this->sectorId; } |
|
|
|
|
66
|
|
|
|
67
|
|
|
public function setId($id) |
68
|
|
|
{ |
69
|
|
|
$this->id = $id; |
70
|
|
|
return $this; |
71
|
|
|
} |
72
|
|
|
public function setRBase($rBase) |
73
|
|
|
{ |
74
|
|
|
$this->rBase = $rBase; |
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
public function setCycleTime($cycleTime) |
78
|
|
|
{ |
79
|
|
|
$this->cycleTime = $cycleTime; |
80
|
|
|
return $this; |
81
|
|
|
} |
82
|
|
|
public function setRecyclerQuantity($recyclerQuantity) |
83
|
|
|
{ |
84
|
|
|
$this->recyclerQuantity = $recyclerQuantity; |
85
|
|
|
return $this; |
86
|
|
|
} |
87
|
|
|
public function setAddToNextMission($addToNextMission) |
88
|
|
|
{ |
89
|
|
|
$this->addToNextMission = $addToNextMission; |
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
public function setURecycling($uRecycling) |
93
|
|
|
{ |
94
|
|
|
$this->uRecycling = $uRecycling; |
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
public function setStatement($statement) |
98
|
|
|
{ |
99
|
|
|
$this->$statement = $statement; |
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function setTypeOfPplace($typeOfPlace) |
104
|
|
|
{ |
105
|
|
|
$this->typeOfPlace = $typeOfPlace; |
106
|
|
|
return $this; |
107
|
|
|
} |
108
|
|
|
public function setPosition($position) |
109
|
|
|
{ |
110
|
|
|
$this->position = $position; |
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
public function setPopulation($population) |
114
|
|
|
{ |
115
|
|
|
$this->population = $population; |
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
public function setCoefResources($coefResources) |
119
|
|
|
{ |
120
|
|
|
$this->coefResources = $coefResources; |
121
|
|
|
return $this; |
122
|
|
|
} |
123
|
|
|
public function setCoefHistory($coefHistory) |
124
|
|
|
{ |
125
|
|
|
$this->coefHistory = $coefHistory; |
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
public function setResources($resources) |
129
|
|
|
{ |
130
|
|
|
$this->resources = $resources; |
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
public function setSystemId($systemId) |
134
|
|
|
{ |
135
|
|
|
$this->systemId = $systemId; |
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
public function setXSystem($xSystem) |
139
|
|
|
{ |
140
|
|
|
$this->xSystem = $xSystem; |
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
public function setYSystem($ySystem) |
144
|
|
|
{ |
145
|
|
|
$this->ySystem = $ySystem; |
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
public function setTypeOfSystem($typeOfSystem) |
149
|
|
|
{ |
150
|
|
|
$this->typeOfSystem = $typeOfSystem; |
151
|
|
|
return $this; |
152
|
|
|
} |
153
|
|
|
public function setSectorId($sectorId) |
154
|
|
|
{ |
155
|
|
|
$this->sectorId = $sectorId; |
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
} |
159
|
|
|
|