<?php
/**
* 装備クラス
*
*/
class Equipment
{
/** @var string 名前 */
private string $name;
/** @var int 最大HP */
private int $hpMax;
/** @var int ATK */
private int $atk;
/** @var int DEF */
private int $def;
/** @var int CRI */
private int $cri;
/** @var int BLOCK */
private int $block;
/**
* constructor
*
* @param int $hpMax 最大HP
* @param int $atk ATK
* @param int $def DEF
* @param int $cri CRI
* @param int $block BLOCK
*/
public function __construct(string $name, int $hpMax, int $atk, int $def, int $cri, int $block)
{
$this->name = $name;
$this->hpMax = $hpMax;
$this->atk = $atk;
$this->def = $def;
$this->cri = $cri;
$this->block = $block;
}
/**
* 名前を取得
*
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* 最大HPを取得
*
* @return int
*/
public function getHpMax(): int
{
return $this->hpMax;
}
/**
* ATKを取得
*
* @return int
*/
public function getAtk(): int
{
return $this->atk;
}
/**
* DEFを取得
*
* @return int
*/
public function getDef(): int
{
return $this->def;
}
/**
* CRIを取得
*
* @return int
*/
public function getCri(): int
{
return $this->cri;
}
/**
* BLOCKを取得
*
* @return int
*/
public function getBlock(): int
{
return $this->block;
}
}