Зачем-то инкапсулирем.
This commit is contained in:
+29
-29
@@ -18,41 +18,41 @@ class User
|
||||
protected $align = 0;
|
||||
protected $clan = 0;
|
||||
protected $money = 0;
|
||||
public $strength = 0;
|
||||
public $dexterity = 0;
|
||||
public $intuition = 0;
|
||||
public $endurance = 0;
|
||||
public $intelligence = 0;
|
||||
public $wisdom = 0;
|
||||
public $health;
|
||||
public $mana;
|
||||
public $ip;
|
||||
public $session_id;
|
||||
public $admin = 0;
|
||||
public $enter_game;
|
||||
public $room;
|
||||
public $block;
|
||||
public $shadow;
|
||||
protected $strength = 0;
|
||||
protected $dexterity = 0;
|
||||
protected $intuition = 0;
|
||||
protected $endurance = 0;
|
||||
protected $intelligence = 0;
|
||||
protected $wisdom = 0;
|
||||
protected $health;
|
||||
protected $mana;
|
||||
protected $ip;
|
||||
protected $session_id;
|
||||
protected $admin = 0;
|
||||
protected $enter_game;
|
||||
protected $room;
|
||||
protected $block;
|
||||
protected $shadow;
|
||||
// Удар кулаком всегда 1-2.
|
||||
public $minDamage = 1;
|
||||
public $maxDamage = 2;
|
||||
protected $minDamage = 1;
|
||||
protected $maxDamage = 2;
|
||||
//Броня без предметов не существует.
|
||||
public $headArmor = 0;
|
||||
public $chestArmor = 0;
|
||||
public $legArmor = 0;
|
||||
public $free_stat_points = 0;
|
||||
public const STAT_MAXIMUM_AMOUNT = 40;
|
||||
protected $headArmor = 0;
|
||||
protected $chestArmor = 0;
|
||||
protected $legArmor = 0;
|
||||
protected $free_stat_points = 0;
|
||||
private const STAT_MAXIMUM_AMOUNT = 40;
|
||||
private const ERROR_STAT_IS_MAXIMUM = 'Ошибка: Параметр достиг своего лимита!';
|
||||
private const ERROR_STAT_UNKNOWN = 'Ошибка: Неизвестный параметр!';
|
||||
// Пока несуществующие, для совместимости.
|
||||
public $married = 'Someone или нет.';
|
||||
public $experience = 200;
|
||||
public $battle = 0;
|
||||
public $in_tower = 0; // Скорее башню похороним чем запустим...
|
||||
public $zayavka = 0;
|
||||
protected $married = 'Someone или нет.';
|
||||
protected $experience = 200;
|
||||
protected $battle = 0;
|
||||
protected $in_tower = 0; // Скорее башню похороним чем запустим...
|
||||
protected $zayavka = 0;
|
||||
// Динамически рассчитываемые
|
||||
public $maxHealth = 5;
|
||||
public $maxMana = 5;
|
||||
protected $maxHealth = 5;
|
||||
protected $maxMana = 5;
|
||||
protected static $db;
|
||||
|
||||
public function __construct(int $user)
|
||||
|
||||
Reference in New Issue
Block a user