AlpacaLibrary/Include/Game/Models/Players.hpp

38 lines
1.1 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef PLAYERS_HPP_INCLUDED
#define PLAYERS_HPP_INCLUDED
#include "../../Core/Classes/Player.hpp"
#include "../../Core/Types/Tile.hpp"
#include "../../Core/Types/Convex.hpp"
#include <functional>
#include <cstdint>
#include <vector>
#include <string>
/** @addtogroup Models
* @{ */
class Players
{
public:
static Player GetLocal();
static std::vector<Player> GetAll();
static std::vector<Player> GetAll(const Tile& Tile);
static std::vector<Player> GetAll(const std::string& Name);
static std::vector<Player> GetAll(const std::vector<std::string>& Names);
static std::vector<Player> GetAll(const std::function<bool (Player&)>& Filter);
static Player Get();
static Player Get(const Tile& Tile);
static Player Get(const std::string& Name);
static Player Get(const std::vector<std::string>& Names);
static Player Get(const std::function<bool (Player&)>& Filter);
2018-02-24 12:59:53 +00:00
static Tile GetTileOf(const Player& P);
2017-12-25 23:49:48 +00:00
2018-02-24 12:59:53 +00:00
static Convex GetConvexOf(const Player& P);
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // PLAYERS_HPP_INCLUDED