<commit_before>/* <NAME>
Jun 3 2015 */

#include "non_player_character.h"

// objective debugging
string NPC::get_objectives() const
{
	stringstream result;
	result << name << "'s objectives:\n";
	for (unsigned i = 0; i < objectives.size(); ++i)
	{
		// verb, direction, material, noun;
		// objective_x, objective_y, objective_z;

		result << "[" << objectives[i].verb
			<< "][" << objectives[i].direction
			<< "][" << objectives[i].material
			<< "][" << objectives[i].noun
			<< "][" << objectives[i].purpose
			<< "][" << ((objectives[i].already_planning_to_craft) ? string("true") : string("false"))
			<< "] ("
			<< objectives[i].objective_x << ","
			<< objectives[i].objective_y << ","
			<< objectives[i].objective_z << ")" << endl;
	}

	return result.str();
}

// objective creating and deletion
void NPC::add_objective(const Objective_Priority & priority, const string & verb, const string & noun, const string & purpose)
{<commit_msg>add coordinates for NPC when printing objectives<commit_after>/* <NAME>
Jun 3 2015 */

#include "non_player_character.h"

// objective debugging
string NPC::get_objectives() const
{
	stringstream result;
	result << name << " (" << x << "," << y << ") objectives:\n";
	for (unsigned i = 0; i < objectives.size(); ++i)
	{
		// verb, direction, material, noun;
		// objective_x, objective_y, objective_z;

		result << "[" << objectives[i].verb
			<< "][" << objectives[i].direction
			<< "][" << objectives[i].material
			<< "][" << objectives[i].noun
			<< "][" << objectives[i].purpose
			<< "][" << ((objectives[i].already_planning_to_craft) ? string("true") : string("false"))
			<< "] ("
			<< objectives[i].objective_x << ","
			<< objectives[i].objective_y << ","
			<< objectives[i].objective_z << ")" << endl;
	}

	return result.str();
}

// objective creating and deletion
void NPC::add_objective(const Objective_Priority & priority, const string & verb, const string & noun, const string & purpose)
{
{'fraction_non_alphanumeric': 0.20337250894225856, 'fraction_numerical': 0.0061318344404701075, 'mean_word_length': 4.1798941798941796, 'pattern_counts': {'":': 0, '<': 103, '<?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': '4811110', 'n_tokens_mistral': 706, 'n_tokens_neox': 626, 'n_words': 135}