<commit_before>#include "Character.h"
#include "EventManager.h"

Character::Character(int width, int height, SDL_Renderer* ren, int startX, int startY, std::string start_seq, int startHP) : Sprite(width, height, ren, startX, startY, start_seq){
	//gravity = true;
	hp = startHP;
	moveSeq.left = "walk left";
	moveSeq.right = "walk right";
	moveSeq.jump = "walk up";
	moveSeq.fall = "walk down";
	
	//EventManager::getInstance().subscribe(this, SDL_KEYDOWN);
}

Character::~Character(void){
}

void Character::changeHP(int deltaHP){
	hp += deltaHP;
}

int Character::getHP(){<commit_msg>Changed this to *this in EventManager<commit_after>#include "Character.h"
#include "EventManager.h"

Character::Character(int width, int height, SDL_Renderer* ren, int startX, int startY, std::string start_seq, int startHP) : Sprite(width, height, ren, startX, startY, start_seq){
	//gravity = true;
	hp = startHP;
	moveSeq.left = "walk left";
	moveSeq.right = "walk right";
	moveSeq.jump = "walk up";
	moveSeq.fall = "walk down";
	
	EventManager::getInstance().subscribe(*this, SDL_KEYDOWN);
}

Character::~Character(void){
}

void Character::changeHP(int deltaHP){
	hp += deltaHP;
}

int Character::getHP(){
{'fraction_non_alphanumeric': 0.15397489539748954, 'fraction_numerical': 0.0, 'mean_word_length': 5.873563218390805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4313761', 'n_tokens_mistral': 413, 'n_tokens_neox': 402, 'n_words': 104}