Codes/Armaments/ArmorCode.php
<?php declare(strict_types=1);
namespace DrdPlus\Codes\Armaments;
use DrdPlus\Codes\Partials\FileBasedTranslatableExtendableCode;
abstract class ArmorCode extends FileBasedTranslatableExtendableCode implements ProtectiveArmamentCode
{
/**
* @return bool
*/
abstract public function isHelm(): bool;
/**
* @return bool
*/
abstract public function isBodyArmor(): bool;
/**
* @return bool
*/
public function isProtectiveArmament(): bool
{
return true;
}
/**
* @return bool
*/
public function isProjectile(): bool
{
return false;
}
/**
* @return bool
*/
final public function isArmor(): bool
{
return true;
}
/**
* @return bool
*/
public function isShield(): bool
{
return false;
}
/**
* @return bool
*/
public function isWeaponlike(): bool
{
return false;
}
}