More debugscript things, sanity fading fast
[ipdf/code.git] / src / debugscript.h
index 3697201..8b62b5c 100644 (file)
@@ -13,6 +13,8 @@ namespace IPDF
 class DebugScript
 {
 public:
+       DebugScript() : inp(), currentAction(), m_actions(), m_labels(), m_index(0) {}
+       virtual ~DebugScript() {}
        void Load(const char *filename)
        {
                inp.open(filename);
@@ -31,6 +33,9 @@ private:
                AT_EnableLazyRendering,
                AT_DisableLazyRendering,
                AT_LoadSVG,
+               AT_Label,
+               AT_Goto,
+               AT_Debug,
                AT_Quit
        };
 
@@ -42,14 +47,16 @@ private:
                Real z;
                int iz;
                int loops;
-               std::string filename;
-               Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0) {}
+               std::string textargs;
+               Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0), textargs("") {}
        };
 
        std::ifstream inp;
 
        Action currentAction;
-
+       std::vector<Action> m_actions;
+       std::map<std::string, int> m_labels;
+       unsigned m_index;
        void ParseAction();
 };
 

UCC git Repository :: git.ucc.asn.au