2012-07-02 16:56:13 +00:00
|
|
|
<?php
|
|
|
|
class CSRCategory extends AchCategory implements CSR {
|
|
|
|
use CSRDispatcher;
|
|
|
|
|
2012-07-08 16:11:25 +00:00
|
|
|
function CSRCategory($id,$race,$cult = null,$civ = null) {
|
|
|
|
parent::__construct($id,$race,$cult,$civ);
|
2012-07-02 16:56:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function makeChild($d) {
|
|
|
|
return new CSRAchievement($d,$this);
|
|
|
|
}
|
|
|
|
|
|
|
|
function grant($id) {
|
|
|
|
return false; // category can't grant!
|
|
|
|
}
|
|
|
|
|
|
|
|
function deny($id) {
|
2012-07-08 16:11:25 +00:00
|
|
|
return false; // category can't deny!
|
2012-07-02 16:56:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*function setAchOpen($idx,$state) {
|
|
|
|
if($state == false) {
|
|
|
|
$this->unsetOpen($idx);
|
|
|
|
if(!in_array($idx,$this->child_done)) {
|
|
|
|
$this->child_done[] = $idx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if(!in_array($idx,$this->child_open)) {
|
|
|
|
$this->child_open[] = $idx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function setAchDone($idx,$state) {
|
|
|
|
if($state == false) {
|
|
|
|
$this->unsetDone($idx);
|
|
|
|
if(!in_array($idx,$this->child_open)) {
|
|
|
|
$this->child_open[] = $idx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if(!in_array($idx,$this->child_done)) {
|
|
|
|
$this->child_done[] = $idx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
?>
|