![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EditorState.h>
Inheritance diagram for Olympe::Editor::MoveEntityCommand:
Collaboration diagram for Olympe::Editor::MoveEntityCommand:Public Member Functions | |
| MoveEntityCommand (const std::string &entityId, const Vector &newPosition) | |
| ~MoveEntityCommand () override=default | |
| void | Execute (LevelManager &levelManager) override |
| void | Undo (LevelManager &levelManager) override |
| std::string | GetDescription () const override |
Public Member Functions inherited from Olympe::Editor::Command | |
| virtual | ~Command ()=default |
Private Attributes | |
| std::string | m_entityId |
| Vector | m_newPosition |
| Vector | m_oldPosition |
Definition at line 80 of file EditorState.h.
| Olympe::Editor::MoveEntityCommand::MoveEntityCommand | ( | const std::string & | entityId, |
| const Vector & | newPosition | ||
| ) |
Definition at line 79 of file EditorState.cpp.
|
overridedefault |
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 84 of file EditorState.cpp.
References GetComponentTypeID_Static(), m_entityId, m_newPosition, m_oldPosition, and Olympe::Editor::EntityInstance::position.
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 101 of file EditorState.cpp.
References m_entityId.
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 95 of file EditorState.cpp.
References GetComponentTypeID_Static(), m_entityId, and m_oldPosition.
Here is the call graph for this function:
|
private |
Definition at line 91 of file EditorState.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 92 of file EditorState.h.
Referenced by Execute().
|
private |
Definition at line 93 of file EditorState.h.