AlpacaLibrary/Include/Game/Models/Players.hpp

32 lines
1.1 KiB
C++

#ifndef PLAYERS_HPP_INCLUDED
#define PLAYERS_HPP_INCLUDED
#include "../../Game/Interactable/Player.hpp"
#include <functional>
#include <cstdint>
#include <vector>
#include <string>
/** @addtogroup Models
* @{ */
class Players
{
public:
static Interactable::Player GetLocal();
static std::vector<Interactable::Player> GetAll();
static std::vector<Interactable::Player> GetAll(const Tile& Tile);
static std::vector<Interactable::Player> GetAll(const std::string& Name);
static std::vector<Interactable::Player> GetAll(const std::vector<std::string>& Names);
static std::vector<Interactable::Player> GetAll(const std::function<bool (Interactable::Player&)>& Filter);
static Interactable::Player Get(const Tile& Tile);
static Interactable::Player Get(const std::string& Name);
static Interactable::Player Get(const std::vector<std::string>& Names);
static Interactable::Player Get(const std::function<bool (const Interactable::Player&)>& Filter);
};
/** @} */
#endif // PLAYERS_HPP_INCLUDED