AlpacaLibrary/Include/Game/Models/GroundItems.hpp

38 lines
1.2 KiB
C++

#ifndef GROUNDITEMS_HPP_INCLUDED
#define GROUNDITEMS_HPP_INCLUDED
#include "../../Core/Classes/GroundItem.hpp"
#include "../../Core/Types/Tile.hpp"
#include "../../Core/Types/Convex.hpp"
#include <functional>
#include <cstdint>
#include <vector>
#include <string>
/** @addtogroup Models
* @{ */
class GroundItems
{
public:
static std::vector<GroundItem> GetAll();
static std::vector<GroundItem> GetAll(Tile T);
static std::vector<GroundItem> GetAll(std::int32_t ID);
static std::vector<GroundItem> GetAll(const std::string& Name);
static std::vector<GroundItem> GetAll(const std::vector<std::int32_t>& IDs);
static std::vector<GroundItem> GetAll(const std::vector<std::string>& Names);
static std::vector<GroundItem> GetAll(const std::function<bool (GroundItem&)>& Filter);
static GroundItem Get(Tile T);
static GroundItem Get(std::int32_t ID);
static GroundItem Get(const std::string& Name);
static GroundItem Get(const std::vector<std::int32_t>& IDs);
static GroundItem Get(const std::vector<std::string>& Names);
static Tile GetTileOf(GroundItem G);
static Convex GetConvexOf(GroundItem G);
};
/** @} */
#endif // GROUNDITEMS_HPP_INCLUDED