Arreglada la clase Screen. Había un lio de conceptos con varias variables

This commit is contained in:
2022-11-18 20:09:03 +01:00
parent 90bdad7d51
commit fdc8797d2b
20 changed files with 708 additions and 128 deletions

16
source/common/jscore.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <string>
namespace jscore {
void init(std::string host, const int port);
const bool initOnlineScore(std::string game);
const int getNumUsers();
std::string getUserName(const int index);
const int getPoints(const int index);
const int getUserPoints(std::string game, std::string user);
const bool updateUserPoints(std::string game, std::string user, const int points);
std::string getUserData(std::string game, std::string user);
void setUserData(std::string game, std::string user, std::string data);
};