Cafu Engine
ModifyModel.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_COMMAND_MODIFY_MODEL_HPP_INCLUDED
8 #define CAFU_COMMAND_MODIFY_MODEL_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 #include "Models/AnimExpr.hpp"
12 
13 
14 class MapDocumentT;
15 class MapModelT;
16 
17 
19 {
20  public:
21 
22  CommandModifyModelT(MapDocumentT& MapDoc, MapModelT* Model, const wxString& ModelFileName,
23  const wxString& CollisionModelFileName, const wxString& Label, float Scale,
24  IntrusivePtrT<AnimExprStandardT> AnimExpr, float FrameTimeOff, float FrameTimeScale, bool Animated);
25 
26  // CommandT implementation.
27  bool Do();
28  void Undo();
29  wxString GetName() const;
30 
31 
32  private:
33 
34  MapDocumentT& m_MapDoc;
35  MapModelT* m_Model;
36  const wxString m_NewModelFileName;
37  const wxString m_OldModelFileName;
38  const wxString m_NewCollModelFileName;
39  const wxString m_OldCollModelFileName;
40  const wxString m_NewLabel;
41  const wxString m_OldLabel;
42  float m_NewScale;
43  float m_OldScale;
46  float m_NewFrameTimeOff;
47  float m_OldFrameTimeOff;
48  float m_NewFrameTimeScale;
49  float m_OldFrameTimeScale;
50  bool m_NewAnimated;
51  bool m_OldAnimated;
52 };
53 
54 #endif
wxString GetName() const
Returns the name (a description) of the command.
Definition: ModifyModel.cpp:100
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
Definition: ModifyModel.hpp:18
Definition: MapModel.hpp:19
void Undo()
This method un-does the command.
Definition: ModifyModel.cpp:72
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
bool Do()
This method executes the command.
Definition: ModifyModel.cpp:43