Skip to content

Commit

Permalink
Doamne ajuta!
Browse files Browse the repository at this point in the history
  • Loading branch information
radumcostache committed May 15, 2023
1 parent 787b6fc commit f2d1fa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions User.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ void User::updateLocation(double lati, double longi) {
location = Point(lati, longi);
}

void User::updateCharacteristics(const Characteristics &characteristics, int multiplier) {
this->characteristics.updateCharacteristics(characteristics, multiplier);
void User::updateCharacteristics(const Characteristics &extra, int multiplier) {
this->chr.updateCharacteristics(extra, multiplier);
}

const Characteristics & User::getCharacteristics() {
return characteristics;
return chr;
}
4 changes: 2 additions & 2 deletions User.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

class User {
Point location;
Characteristics characteristics;
Characteristics chr;
public:
void updateCharacteristics(const Characteristics &characteristics, int multiplier);
void updateCharacteristics(const Characteristics &extra, int multiplier);
Point getLocation();
const Characteristics & getCharacteristics();

Expand Down
2 changes: 1 addition & 1 deletion ratingQuestion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ratingQuestion::ratingQuestion(const std::string & question, Characteristics &ch
}

/*void ratingQuestion::updateUser(User &user) {
user.updateCharacteristics(characteristics, answer);
user.updateCharacteristics(chr, answer);
}*/

std::string ratingQuestion::handleEvent(sf::Event event, sf::RenderWindow &window) {
Expand Down

0 comments on commit f2d1fa8

Please sign in to comment.