38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
#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);
 | 
						|
 | 
						|
        static Tile GetTileOf(const Player& P);
 | 
						|
 | 
						|
        static Convex GetConvexOf(const Player& P);
 | 
						|
};
 | 
						|
 | 
						|
/** @} */
 | 
						|
 | 
						|
#endif // PLAYERS_HPP_INCLUDED
 |