2018-03-20 04:35:47 +00:00
|
|
|
#ifndef GAMEOBJECTS_HPP_INCLUDED
|
|
|
|
#define GAMEOBJECTS_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include "../../Core/Classes/GameObject.hpp"
|
|
|
|
#include "../../Core/Classes/ObjectInfo.hpp"
|
|
|
|
#include "../../Core/Types/Tile.hpp"
|
|
|
|
#include "../../Core/Types/Convex.hpp"
|
|
|
|
#include <functional>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
2018-03-20 16:16:11 +00:00
|
|
|
/** @addtogroup Models
|
|
|
|
* @{ */
|
2018-03-20 04:35:47 +00:00
|
|
|
class GameObjects
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static Internal::ObjectInfo GetInfoOf(const Internal::GameObject& G);
|
|
|
|
static Tile GetTileOf(const Internal::GameObject& G);
|
|
|
|
static std::vector<Point> GetModelOf(const Internal::GameObject& G);
|
|
|
|
static Convex GetConvexOf(const Internal::GameObject& G);
|
|
|
|
|
|
|
|
//consider changing to Interactable::GameObject
|
|
|
|
static std::vector<Internal::GameObject> GetAll();
|
|
|
|
static std::vector<Internal::GameObject> GetAll(const Tile& T);
|
|
|
|
static std::vector<Internal::GameObject> GetAll(std::int32_t ID);
|
|
|
|
static std::vector<Internal::GameObject> GetAll(const std::string& Name);
|
|
|
|
static std::vector<Internal::GameObject> GetAll(const std::vector<std::int32_t>& PossibleIDs);
|
|
|
|
static std::vector<Internal::GameObject> GetAll(const std::vector<std::string>& PossibleNames);
|
2018-03-20 16:16:11 +00:00
|
|
|
static std::vector<Internal::GameObject> GetAll(const std::function<bool (const Internal::GameObject&)>& Filter);
|
2018-03-20 04:35:47 +00:00
|
|
|
|
2018-03-20 16:16:11 +00:00
|
|
|
static Internal::GameObject Get(const Tile& T);
|
|
|
|
static Internal::GameObject Get(std::int32_t ID);
|
|
|
|
static Internal::GameObject Get(const std::string& Name);
|
|
|
|
static Internal::GameObject Get(const std::vector<std::int32_t>& PossibleIDs);
|
|
|
|
static Internal::GameObject Get(const std::vector<std::string>& PossibleNames);
|
|
|
|
static Internal::GameObject Get(const std::function<bool (const Internal::GameObject&)>& Filter);
|
2018-03-20 04:35:47 +00:00
|
|
|
};
|
|
|
|
|
2018-03-20 16:16:11 +00:00
|
|
|
/** @} */
|
|
|
|
|
2018-03-20 04:35:47 +00:00
|
|
|
#endif // GAMEOBJECTS_HPP_INCLUDED
|