<commit_before>/*
 -------------------------------------------------------
 Author: <NAME>
 Id: 110283790
 Email: <EMAIL>
 Version: December 1, 2014
 -------------------------------------------------------
 */

/*
   -------------------------------------------------------
    This file contains implementation for the KlaxScore class,
    which is defined in KlaxScore.hpp
    -------------------------------------------------------
 */

#include"KlaxScore.hpp"

KlaxScore :: KlaxScore(){
	this->currentScore = 0;
	this->numberOfKlaxes = 0;
	this->font = GLUT_BITMAP_HELVETICA_12;
	this->fonts = GLUT_BITMAP_9_BY_15;
}

void KlaxScore :: addKlaxToScore(){
	this->numberOfKlaxes++;
	this->currentScore = this->numberOfKlaxes * POINTS_PER_KLAX;
}

/* Credit: <NAME>, 1994. Provided by Dr. <NAME> in CP411 resources*/
void KlaxScore :: output(GLfloat x, GLfloat y, GLfloat z, char *string)
{
  int len, i;

  glRasterPos3f(x, y, z);
  len = (int) strlen(string);
  for (i = 0; i < len; i++) {
    glutBitmapCharacter(this->font, string[i]);
  }
}

void KlaxScore :: draw(){
	char default_message[] = "Score";
	char strScore[10];
	itoa(this->currentScore, strScore, 10);
	glColor3f(1,0,0);
	output(-1, 0.1, 0.1, default_message);
	output(-1, 0, 0.1, strScore);

}<commit_msg>Forgot to include KlaxScore.cpp with last push<commit_after>/*
 -------------------------------------------------------
 Author: <NAME>
 Id: 110283790
 Email: <EMAIL>
 Version: December 1, 2014
 -------------------------------------------------------
 */

/*
   -------------------------------------------------------
    This file contains implementation for the KlaxScore class,
    which is defined in KlaxScore.hpp
    -------------------------------------------------------
 */

#include"KlaxScore.hpp"

KlaxScore :: KlaxScore(){
	this->currentScore = 0;
	this->numberOfKlaxes = 0;
	this->font = GLUT_BITMAP_HELVETICA_12;
	this->fonts = GLUT_BITMAP_9_BY_15;
}

void KlaxScore :: addKlaxToScore(){
	this->numberOfKlaxes++;
	this->currentScore = this->numberOfKlaxes * POINTS_PER_KLAX;
}

/* Credit: <NAME>, 1994. Provided by Dr. <NAME> in CP411 resources*/
void KlaxScore :: output(GLfloat x, GLfloat y, GLfloat z, char *string)
{
  int len, i;

  glRasterPos3f(x, y, z);
  len = (int) strlen(string);
  for (i = 0; i < len; i++) {
    glutBitmapCharacter(this->font, string[i]);
  }
}

void KlaxScore :: draw(){
	char default_message[] = "Score";
	char strScore[10];
	itoa(this->currentScore, strScore, 10);
	glColor3f(1,0,0);
	output(-1, 0.1, 0.1, default_message);
	output(-1, 0, 0.1, strScore);
}
{'fraction_non_alphanumeric': 0.29774844720496896, 'fraction_numerical': 0.036490683229813664, 'mean_word_length': 1.9860950173812282, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 29, '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': '870731', 'n_tokens_mistral': 924, 'n_tokens_neox': 835, 'n_words': 204}