<commit_before>#ifndef GAME_ACTOR_NPC_DUMMYACTOR_H
#define GAME_ACTOR_NPC_DUMMYACTOR_H

#include "precompiled.h"

#include "engine/actor/ActorBase.h"
#include "engine/math/random.h"

namespace game {
namespace actor {
namespace npc {

	class DummyActor : public engine::actor::ActorBase {
		private:
		public:
			DummyActor(){
				name         = "Dummy";
				hp           = 50;
				maxHp        = 50;
				strength     = 5;
				dexterity    = 5;
				constitution = 1;
				symbol       = 'D';
				aiState      = engine::actor::AISTATE_PATROL;
			}

			void update(){
				LOG_DEBUG("Dummy AI tick");
				MoveActor(vec2(randomRange(-1,1), randomRange(-1,1)));
			}

			void onAttack( engine::actor::ActorBase * target ) {
				LOG_DEBUG("Dummy attacks!");
			}
	};
}
}<commit_msg>Added torso and bodyparts for dummy<commit_after>#ifndef GAME_ACTOR_NPC_DUMMYACTOR_H
#define GAME_ACTOR_NPC_DUMMYACTOR_H

#include "precompiled.h"

#include "engine/actor/ActorBase.h"
#include "engine/math/random.h"

namespace game {
namespace actor {
namespace npc {

	class DummyActor : public engine::actor::ActorBase {
		private:
		public:
			DummyActor(){
				name         = "Dummy";
				hp           = 50;
				maxHp        = 50;
				strength     = 5;
				dexterity    = 5;
				constitution = 1;
				symbol       = 'D';
				aiState      = engine::actor::AISTATE_PATROL;

				torso = new engine::actor::body::Torso();
				torso->parent = torso;

				engine::actor::body::BodyPart *head     = new engine::actor::body::Head();
				engine::actor::body::BodyPart *rightArm = new engine::actor::body::Arm();
				engine::actor::body::BodyPart *leftArm  = new engine::actor::body::Arm();
				engine::actor::body::BodyPart *rightLeg = new engine::actor::body::Leg();
				engine::actor::body::BodyPart *leftLeg  = new engine::actor::body::Leg();

				torso->addChild(head);
				torso->addChild(rightArm);
				torso->addChild(leftArm);
				torso->addChild(rightLeg);
				torso->addChild(leftLeg);
			}

			void update(){
				LOG_DEBUG("Dummy AI tick");
				MoveActor(vec2(randomRange(-1,1), randomRange(-1,1)));
			}

			void onAttack( engine::actor::ActorBase * target ) {
				LOG_DEBUG("Dummy attacks!");
			}
	};
}
}
{'fraction_non_alphanumeric': 0.14990859232175502, 'fraction_numerical': 0.010968921389396709, 'mean_word_length': 3.3432539682539684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4530967', 'n_tokens_mistral': 919, 'n_tokens_neox': 758, 'n_words': 139}