AlpacaLibrary/Include/Game/Models/GameObjects.hpp

35 lines
1.4 KiB
C++
Raw Normal View History

2018-03-20 04:35:47 +00:00
#ifndef GAMEOBJECTS_HPP_INCLUDED
#define GAMEOBJECTS_HPP_INCLUDED
2018-05-10 01:08:38 +00:00
#include "../../Game/Interactable/GameObject.hpp"
2018-03-20 04:35:47 +00:00
#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:
2018-05-10 01:08:38 +00:00
static std::vector<Interactable::GameObject> GetAll();
static std::vector<Interactable::GameObject> GetAll(const Tile& T);
static std::vector<Interactable::GameObject> GetAll(std::int32_t ID);
static std::vector<Interactable::GameObject> GetAll(const std::string& Name);
static std::vector<Interactable::GameObject> GetAll(const std::vector<std::int32_t>& IDs);
static std::vector<Interactable::GameObject> GetAll(const std::vector<std::string>& Names);
static std::vector<Interactable::GameObject> GetAll(const std::function<bool (const Interactable::GameObject&)>& Filter);
2018-03-20 04:35:47 +00:00
2018-05-10 01:08:38 +00:00
static Interactable::GameObject Get(const Tile& T);
static Interactable::GameObject Get(std::int32_t ID);
static Interactable::GameObject Get(const std::string& Name);
static Interactable::GameObject Get(const std::vector<std::int32_t>& IDs);
static Interactable::GameObject Get(const std::vector<std::string>& Names);
static Interactable::GameObject Get(const std::function<bool (const Interactable::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