Pacman Torben Petré
Loading...
Searching...
No Matches
ScorePopup Struct Reference

#include <WorldView.h>

Public Member Functions

 ScorePopup ()
void setScore (int score)
 Sets the Sprite sf::TextureRect to the corresponding score.

Public Attributes

sf::Sprite sprite
double elapsedTime
bool active

Constructor & Destructor Documentation

◆ ScorePopup()

ScorePopup::ScorePopup ( )

ScorePopup struct holds a few members that allow me to easily display different scores at different times.

Member Function Documentation

◆ setScore()

void ScorePopup::setScore ( int score)

Sets the Sprite sf::TextureRect to the corresponding score.

Parameters
scoreScore to be displayed.

Member Data Documentation

◆ active

bool ScorePopup::active

◆ elapsedTime

double ScorePopup::elapsedTime

◆ sprite

sf::Sprite ScorePopup::sprite

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