2017-12-25 23:49:48 +00:00
|
|
|
#ifndef PLAYERS_HPP_INCLUDED
|
|
|
|
#define PLAYERS_HPP_INCLUDED
|
|
|
|
|
2018-05-10 01:08:38 +00:00
|
|
|
#include "../../Game/Interactable/Player.hpp"
|
2017-12-25 23:49:48 +00:00
|
|
|
#include <functional>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
2023-03-09 17:15:48 +00:00
|
|
|
#include <regex>
|
2017-12-25 23:49:48 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
namespace Players
|
2017-12-25 23:49:48 +00:00
|
|
|
{
|
2018-12-27 18:17:09 +00:00
|
|
|
Interactable::Player GetLocal();
|
|
|
|
std::vector<Interactable::Player> GetAllWithin(std::int32_t Distance);
|
2018-07-12 01:58:05 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
std::vector<Interactable::Player> GetAll();
|
|
|
|
std::vector<Interactable::Player> GetAll(const Tile& Tile);
|
2023-03-09 17:15:48 +00:00
|
|
|
std::vector<Interactable::Player> GetAll(const std::regex& Name, std::int32_t Distance = -1);
|
2018-12-27 18:17:09 +00:00
|
|
|
std::vector<Interactable::Player> GetAll(const std::string& Name, std::int32_t Distance = -1);
|
|
|
|
std::vector<Interactable::Player> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
|
|
|
|
std::vector<Interactable::Player> GetAll(const std::function<bool (Interactable::Player&)>& Filter, std::int32_t Distance = -1);
|
2018-08-06 04:30:12 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
Interactable::Player Get(const Tile& Tile);
|
2023-03-09 17:15:48 +00:00
|
|
|
Interactable::Player Get(const std::regex& Name, std::int32_t Distance = -1);
|
2018-12-27 18:17:09 +00:00
|
|
|
Interactable::Player Get(const std::string& Name, std::int32_t Distance = -1);
|
|
|
|
Interactable::Player Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);
|
|
|
|
Interactable::Player Get(const std::function<bool (const Interactable::Player&)>& Filter, std::int32_t Distance = -1);
|
2018-12-31 21:52:58 +00:00
|
|
|
}
|
2017-12-25 23:49:48 +00:00
|
|
|
|
|
|
|
#endif // PLAYERS_HPP_INCLUDED
|