world/source/Alignment.cpp
// Get the alignment range, based off the raw alignment.
Get the alignment range, based off the raw alignment.
Get the alignment range based off the raw alignment .
AlignmentRange Alignment::get_alignment_range() const
{
  AlignmentRange align_range;
  if (alignment >= EVIL_MIN && alignment <= EVIL_MAX)
  {
    align_range = AlignmentRange::ALIGNMENT_RANGE_EVIL;
  }
  else if (alignment >= GOOD_MIN && alignment <= GOOD_MAX)
  {
    align_range = AlignmentRange::ALIGNMENT_RANGE_GOOD;
  }
  else
  {
    align_range = AlignmentRange::ALIGNMENT_RANGE_NEUTRAL;
  }
  return align_range;
}
AlignmentRange Alignment :: get_alignment_range ( ) const { AlignmentRange align_range ; if ( alignment >= EVIL_MIN && alignment <= EVIL_MAX ) { align_range = AlignmentRange :: ALIGNMENT_RANGE_EVIL ; } else if ( alignment >= GOOD_MIN && alignment <= GOOD_MAX ) { align_range = AlignmentRange :: ALIGNMENT_RANGE_GOOD ; } else { align_range = AlignmentRange :: ALIGNMENT_RANGE_NEUTRAL ; } return align_range ; }
Get the alignment range, based off the raw alignment.
Get the alignment range based off the raw alignment .
// Default to neutral.