receivesAttackFromEnemy method

bool receivesAttackFromEnemy()

Implementation

bool receivesAttackFromEnemy() {
  return receivesAttackFrom == ReceivesAttackFromEnum.ALL ||
      receivesAttackFrom == ReceivesAttackFromEnum.ENEMY;
}