mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
50 lines
1,012 B
C++
50 lines
1,012 B
C++
#pragma once
|
|
|
|
#include "GameScriptNamedBase.h"
|
|
#include "level.h"
|
|
|
|
namespace sol {
|
|
class state;
|
|
}
|
|
class GameScriptPosition;
|
|
|
|
class GameScriptAIObject : public GameScriptNamedBase<GameScriptAIObject, AI_OBJECT&>
|
|
{
|
|
public:
|
|
GameScriptAIObject(AI_OBJECT& ref, bool temp);
|
|
~GameScriptAIObject();
|
|
|
|
GameScriptAIObject& operator=(GameScriptAIObject const& other) = delete;
|
|
GameScriptAIObject(GameScriptAIObject const& other) = delete;
|
|
|
|
static void Register(sol::state *);
|
|
|
|
GameScriptPosition GetPos() const;
|
|
void SetPos(GameScriptPosition const& pos);
|
|
|
|
short GetRoom() const;
|
|
void SetRoom(short Room);
|
|
|
|
std::string GetName() const;
|
|
void SetName(std::string const &);
|
|
|
|
GAME_OBJECT_ID GetObjID() const;
|
|
void SetObjID(GAME_OBJECT_ID);
|
|
|
|
short GetTriggerFlags() const;
|
|
void SetTriggerFlags(short);
|
|
|
|
short GetFlags() const;
|
|
void SetFlags(short);
|
|
|
|
short GetYRot() const;
|
|
void SetYRot(short);
|
|
|
|
short GetBoxNumber() const;
|
|
void SetBoxNumber(short);
|
|
|
|
private:
|
|
AI_OBJECT & m_aiObject;
|
|
bool m_temporary;
|
|
};
|
|
|