Byggern
Highscore::Score Struct Reference

Represents a score. More...

#include <highscore.h>

Public Member Functions

 Score (uint16_t score, char *name, uint8_t name_length)
 
void operator= (const Score &score)
 

Public Attributes

uint16_t score
 
uint8_t name_length
 
char * name
 

Detailed Description

Represents a score.

Parameters
scoreThis is the score, 16 bits wide.
name_lengthThis is the lenght of the name.
nameThis is the name of the person who scored score points.

Member Function Documentation

§ operator=()

void Highscore::Score::operator= ( const Score score)

Setting a score equal to another score copies the name contents byte for byte.

Parameters
scoreThe score to copy.

The documentation for this struct was generated from the following file: