refac: 유산 포인트 파트를 별도의 Manager로 분리, enum 적용

This commit is contained in:
2022-05-08 04:40:36 +09:00
parent 54a5a61bee
commit c32179347c
35 changed files with 463 additions and 345 deletions
+6 -7
View File
@@ -1,6 +1,9 @@
<?php
namespace sammo;
use sammo\Enums\InheritanceKey;
class DummyGeneral extends General{
public function __construct(bool $initLogger=true){
$raw = [
@@ -46,19 +49,15 @@ class DummyGeneral extends General{
return $value;
}
public function getInheritancePoint(string $key, &$aux = null, bool $forceCalc = false){
public function getInheritancePoint(InheritanceKey $key, &$aux = null, bool $forceCalc = false): int|float{
return 0;
}
public function setInheritancePoint(string $key, $value, $aux = null){
public function setInheritancePoint(InheritanceKey $key, $value, $aux = null){
return;
}
public function increaseInheritancePoint(string $key, $value, $aux = null){
return;
}
public function mergeTotalInheritancePoint(bool $isEnd=false){
public function increaseInheritancePoint(InheritanceKey $key, $value, $aux = null){
return;
}