V-Gears 0
Free Final Fantasy VII engine.
EntityPoint.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17#include <OgreRoot.h>
18
23
24 public:
25
31 EntityPoint(const Ogre::String& name);
32
36 virtual ~EntityPoint();
37
41 void UpdateDebug();
42
48 const Ogre::String& GetName() const;
49
55 void SetPosition(const Ogre::Vector3& point);
56
62 const Ogre::Vector3& GetPosition() const;
63
67 void ScriptGetPosition() const;
68
74 void SetRotation(const float rotation);
75
81 float GetRotation() const;
82
88 float ScriptGetRotation() const;
89
90 protected:
91
96
100 Ogre::Vector3 position_;
101
106};
An entity point.
Definition: EntityPoint.h:22
void ScriptGetPosition() const
Informs the script manager of the point position.
Definition: EntityPoint.cpp:64
float rotation_
The entity point's orientation.
Definition: EntityPoint.h:105
float ScriptGetRotation() const
Retrieves the point orientation.
Definition: EntityPoint.cpp:87
Ogre::Vector3 position_
The entity point's position.
Definition: EntityPoint.h:100
Ogre::String name_
The entity point name.
Definition: EntityPoint.h:95
void SetRotation(const float rotation)
Sets the point orientation.
Definition: EntityPoint.cpp:73
virtual ~EntityPoint()
Destructor.
Definition: EntityPoint.cpp:18
const Ogre::Vector3 & GetPosition() const
Retrieves the point position.
Definition: EntityPoint.cpp:57
void UpdateDebug()
Updates the point state with debug information.
Definition: EntityPoint.cpp:24
float GetRotation() const
Retrieves the point orientation.
Definition: EntityPoint.cpp:80
const Ogre::String & GetName() const
Retrieves the entity point name.
Definition: EntityPoint.cpp:42
void SetPosition(const Ogre::Vector3 &point)
Sets the point position.
Definition: EntityPoint.cpp:49
EntityPoint(const Ogre::String &name)
Constructor.
Definition: EntityPoint.cpp:10
Ogre::String String
Definition: TypeDefine.h:37