AlpacaLibrary/Include/Game/Models/GroundObjects.hpp

36 lines
1.7 KiB
C++
Raw Normal View History

2018-03-20 16:16:11 +00:00
#ifndef GROUNDOBJECTS_HPP_INCLUDED
#define GROUNDOBJECTS_HPP_INCLUDED
2018-05-10 01:08:38 +00:00
#include "../../Game/Interactable/GroundObject.hpp"
2018-03-20 16:16:11 +00:00
#include <functional>
#include <cstdint>
#include <vector>
#include <string>
/** @addtogroup Models
* @{ */
class GroundObjects
{
public:
2018-08-06 04:30:12 +00:00
static std::vector<Interactable::GroundObject> GetAllWithin(std::int32_t Distance);
2018-05-10 01:08:38 +00:00
static std::vector<Interactable::GroundObject> GetAll();
2018-08-06 04:30:12 +00:00
static std::vector<Interactable::GroundObject> GetAll(std::int32_t ID, std::int32_t Distance = -1);
static std::vector<Interactable::GroundObject> GetAll(const std::string& Name, std::int32_t Distance = -1);
static std::vector<Interactable::GroundObject> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
static std::vector<Interactable::GroundObject> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
static std::vector<Interactable::GroundObject> GetAll(const std::function<bool (const Interactable::GroundObject&)>& Filter, std::int32_t Distance = -1);
2018-03-20 16:16:11 +00:00
2018-05-10 01:08:38 +00:00
static Interactable::GroundObject Get(const Tile& T);
2018-08-06 04:30:12 +00:00
static Interactable::GroundObject Get(std::int32_t ID, std::int32_t Distance = -1);
static Interactable::GroundObject Get(const std::string& Name, std::int32_t Distance = -1);
static Interactable::GroundObject Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
static Interactable::GroundObject Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);
static Interactable::GroundObject Get(const std::function<bool (const Interactable::GroundObject&)>& Filter, std::int32_t Distance = -1);
2018-03-20 16:16:11 +00:00
};
/** @} */
#endif // GROUNDOBJECTS_HPP_INCLUDED