AlpacaLibrary/Include/Game/Interactable/GameObject.hpp

42 lines
1.2 KiB
C++
Raw Normal View History

2018-03-18 14:38:29 +00:00
#ifndef INTERACTABLEGAMEOBJECT_HPP_INCLUDED
#define INTERACTABLEGAMEOBJECT_HPP_INCLUDED
#include "../../Core/Classes/GameObject.hpp"
#include "../../Core/Classes/ObjectInfo.hpp"
#include "../../Core/Types/Tile.hpp"
#include "../../Core/Types/Point.hpp"
2018-05-10 01:08:38 +00:00
#include "../../Core/Types/Box.hpp"
2018-03-18 14:38:29 +00:00
#include "../../Core/Types/Convex.hpp"
2018-05-10 01:08:38 +00:00
#include "../../Core/Input.hpp"
2018-03-18 14:38:29 +00:00
#include <cstdint>
namespace Interactable
{
class GameObject : public Internal::GameObject
{
public:
GameObject(const Internal::GameObject& G);
GameObject(const GameObject& G);
std::int32_t GetID() const;
std::string GetName() const;
Internal::ObjectInfo GetInfo() const;
2018-05-10 01:08:38 +00:00
Box GetBox() const;
Point GetPoint() const;
2018-03-18 14:38:29 +00:00
Convex GetConvex() const;
2018-05-10 01:08:38 +00:00
std::vector<Point> GetModel() const;
double GetVisibility() const;
Tile GetTile() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::string& Option) const;
bool Interact(const std::vector<std::string>& Options) const;
2018-03-18 14:38:29 +00:00
2018-03-27 02:51:41 +00:00
operator Internal::GameObject() const;
2018-03-18 14:38:29 +00:00
};
}
#endif // INTERACTABLEGAMEOBJECT_HPP_INCLUDED