<commit_before>package de.isibboi.agentsim.game.entities;

import de.isibboi.agentsim.Settings;

/**
 * Contains all game-related attributes of a goblin.
 * @author <NAME>
 * @since 0.3.0
 */
public class GoblinAttributes implements Attributes {
	private int _age;
	private int _saturation;
	private int _maxSaturation;
	private boolean _alive;

	/**
	 * Creates a new object initializing all the attributes.
	 * @param age The age of the goblin.
	 * @param saturation The saturation of the goblin.
	 */
	public GoblinAttributes(final int age, final int saturation, final int maxSaturation) {
		_age = age;
		_saturation = saturation;
		_maxSaturation = maxSaturation;
		_alive = true;
	}

	/**
	 * Creates a new goblin attributes object. Initializes the attributes with the given settings.
	 * @param settings The settings.
	 */
	public GoblinAttributes(final Settings settings) {
		_age = 0;
		_saturation = settings.getInt(Settings.GAME_ENTITIES_GOBLIN_INITIAL_SATURATION);
		_saturation = settings.getInt(Settings.GAME_ENTITIES_GOBLIN_INITIAL_MAX_SATURATION);
		_alive = true;
	}

	/**
	 * Returns the age.
	 * @return The age.
	 */
	public int getAge() {
		return _age;
	}

	/**
	 * Sets the age.
	 * @param age The age.<commit_msg>Fixed goblin attributes not setting maxSaturation.<commit_after>package de.isibboi.agentsim.game.entities;

import de.isibboi.agentsim.Settings;

/**
 * Contains all game-related attributes of a goblin.
 * @author <NAME>
 * @since 0.3.0
 */
public class GoblinAttributes implements Attributes {
	private int _age;
	private int _saturation;
	private int _maxSaturation;
	private boolean _alive;

	/**
	 * Creates a new object initializing all the attributes.
	 * @param age The age of the goblin.
	 * @param saturation The saturation of the goblin.
	 */
	public GoblinAttributes(final int age, final int saturation, final int maxSaturation) {
		_age = age;
		_saturation = saturation;
		_maxSaturation = maxSaturation;
		_alive = true;
	}

	/**
	 * Creates a new goblin attributes object. Initializes the attributes with the given settings.
	 * @param settings The settings.
	 */
	public GoblinAttributes(final Settings settings) {
		_age = 0;
		_saturation = settings.getInt(Settings.GAME_ENTITIES_GOBLIN_INITIAL_SATURATION);
		_maxSaturation = settings.getInt(Settings.GAME_ENTITIES_GOBLIN_INITIAL_MAX_SATURATION);
		_alive = true;
	}

	/**
	 * Returns the age.
	 * @return The age.
	 */
	public int getAge() {
		return _age;
	}

	/**
	 * Sets the age.
	 * @param age The age.
{'fraction_non_alphanumeric': 0.09108989657915673, 'fraction_numerical': 0.0031821797931583136, 'mean_word_length': 3.883495145631068, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4231222', 'n_tokens_mistral': 888, 'n_tokens_neox': 809, 'n_words': 242}