Cafu Engine
SetAnimNext.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_MODELEDITOR_SET_ANIM_NEXT_HPP_INCLUDED
8 #define CAFU_MODELEDITOR_SET_ANIM_NEXT_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 
12 
13 namespace ModelEditor
14 {
15  class ModelDocumentT;
16 
18  {
19  public:
20 
21  CommandSetAnimNextT(ModelDocumentT* ModelDoc, unsigned int AnimNr, int NewNext);
22 
23  // CommandT implementation.
24  bool Do();
25  void Undo();
26  wxString GetName() const;
27 
28 
29  private:
30 
31  ModelDocumentT* m_ModelDoc;
32  const unsigned int m_AnimNr;
33  const int m_NewNext;
34  const int m_OldNext;
35  };
36 }
37 
38 #endif
wxString GetName() const
Returns the name (a description) of the command.
Definition: SetAnimNext.cpp:60
Definition: SetAnimNext.hpp:17
void Undo()
This method un-does the command.
Definition: SetAnimNext.cpp:44
bool Do()
This method executes the command.
Definition: SetAnimNext.cpp:24
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
Definition: ModelDocument.hpp:30