khanat-opennel-code/code/web/app/app_achievements_admin/class/CSRCategory_class.php

50 lines
1 KiB
PHP
Raw Normal View History

2012-07-02 16:56:13 +00:00
<?php
class CSRCategory extends AchCategory implements CSR {
use CSRDispatcher;
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) {
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;
}
}
}*/
}
?>