![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EditorState.h>
Public Member Functions | |
| EditorState () | |
| ~EditorState () | |
| void | ExecuteCommand (std::unique_ptr< Command > command, LevelManager &levelManager) |
| bool | Undo (LevelManager &levelManager) |
| bool | Redo (LevelManager &levelManager) |
| bool | CanUndo () const |
| bool | CanRedo () const |
| std::string | GetUndoDescription () const |
| std::string | GetRedoDescription () const |
| void | ClearHistory () |
| size_t | GetHistorySize () const |
| size_t | GetHistoryIndex () const |
| void | SetMaxHistorySize (size_t maxSize) |
Private Member Functions | |
| void | TrimHistory () |
Private Attributes | |
| std::deque< std::unique_ptr< Command > > | m_commandHistory |
| size_t | m_historyIndex |
| size_t | m_maxHistorySize |
Definition at line 134 of file EditorState.h.
| Olympe::Editor::EditorState::EditorState | ( | ) |
Definition at line 187 of file EditorState.cpp.
| Olympe::Editor::EditorState::~EditorState | ( | ) |
Definition at line 192 of file EditorState.cpp.
| bool Olympe::Editor::EditorState::CanRedo | ( | ) | const |
Definition at line 259 of file EditorState.cpp.
References m_commandHistory, and m_historyIndex.
Referenced by GetRedoDescription(), and Redo().
Here is the caller graph for this function:| bool Olympe::Editor::EditorState::CanUndo | ( | ) | const |
Definition at line 254 of file EditorState.cpp.
References m_historyIndex.
Referenced by GetUndoDescription(), and Undo().
Here is the caller graph for this function:| void Olympe::Editor::EditorState::ClearHistory | ( | ) |
Definition at line 282 of file EditorState.cpp.
References m_commandHistory, and m_historyIndex.
| void Olympe::Editor::EditorState::ExecuteCommand | ( | std::unique_ptr< Command > | command, |
| LevelManager & | levelManager | ||
| ) |
Definition at line 196 of file EditorState.cpp.
References GetComponentTypeID_Static(), m_commandHistory, m_historyIndex, and TrimHistory().
Here is the call graph for this function:
|
inline |
Definition at line 162 of file EditorState.h.
References m_historyIndex.
|
inline |
Definition at line 161 of file EditorState.h.
References m_commandHistory.
| std::string Olympe::Editor::EditorState::GetRedoDescription | ( | ) | const |
Definition at line 273 of file EditorState.cpp.
References CanRedo(), m_commandHistory, and m_historyIndex.
Here is the call graph for this function:| std::string Olympe::Editor::EditorState::GetUndoDescription | ( | ) | const |
Definition at line 264 of file EditorState.cpp.
References CanUndo(), m_commandHistory, and m_historyIndex.
Here is the call graph for this function:| bool Olympe::Editor::EditorState::Redo | ( | LevelManager & | levelManager | ) |
Definition at line 240 of file EditorState.cpp.
References CanRedo(), GetComponentTypeID_Static(), m_commandHistory, and m_historyIndex.
Here is the call graph for this function:Definition at line 165 of file EditorState.h.
References GetComponentTypeID_Static(), and m_maxHistorySize.
Here is the call graph for this function:
|
private |
Definition at line 289 of file EditorState.cpp.
References m_commandHistory, m_historyIndex, and m_maxHistorySize.
Referenced by ExecuteCommand().
Here is the caller graph for this function:| bool Olympe::Editor::EditorState::Undo | ( | LevelManager & | levelManager | ) |
Definition at line 226 of file EditorState.cpp.
References CanUndo(), GetComponentTypeID_Static(), m_commandHistory, and m_historyIndex.
Here is the call graph for this function:
|
private |
Definition at line 170 of file EditorState.h.
Referenced by CanRedo(), ClearHistory(), ExecuteCommand(), GetHistorySize(), GetRedoDescription(), GetUndoDescription(), Redo(), TrimHistory(), and Undo().
|
private |
Definition at line 171 of file EditorState.h.
Referenced by CanRedo(), CanUndo(), ClearHistory(), ExecuteCommand(), GetHistoryIndex(), GetRedoDescription(), GetUndoDescription(), Redo(), TrimHistory(), and Undo().
|
private |
Definition at line 172 of file EditorState.h.
Referenced by SetMaxHistorySize(), and TrimHistory().