+ else if (actionType == "approachz") // approach zenoistically
+ {
+ currentAction.type = AT_ApproachBoundsZeno;
+ std::string _x, _y, _w, _h, _z;
+ inp >> _x >> _y >> _w >> _h >> _z;
+ currentAction.x = RealFromStr(_x.c_str());
+ currentAction.y = RealFromStr(_y.c_str());
+ currentAction.w = RealFromStr(_w.c_str());
+ currentAction.h = RealFromStr(_h.c_str());
+ currentAction.z = RealFromStr(_z.c_str());
+ }
+ else if (actionType == "approachl") // approach linearly
+ {
+ currentAction.type = AT_ApproachBoundsLinear;
+ std::string _x, _y, _w, _h, _z;
+ inp >> _x >> _y >> _w >> _h >> _z;
+ currentAction.x = RealFromStr(_x.c_str());
+ currentAction.y = RealFromStr(_y.c_str());
+ currentAction.w = RealFromStr(_w.c_str());
+ currentAction.h = RealFromStr(_h.c_str());
+ currentAction.z = RealFromStr(_z.c_str());
+ currentAction.x = (currentAction.x - view->GetBounds().x)/currentAction.z;
+ currentAction.y = (currentAction.y - view->GetBounds().y)/currentAction.z;
+ currentAction.w = (currentAction.w - view->GetBounds().w)/currentAction.z;
+ currentAction.h = (currentAction.h - view->GetBounds().h)/currentAction.z;
+ }
+ else if (actionType == "setbounds")
+ {
+ currentAction.type = AT_SetBounds;
+ std::string _x, _y, _w, _h;
+ inp >> _x >> _y >> _w >> _h;
+ currentAction.x = RealFromStr(_x.c_str());
+ currentAction.y = RealFromStr(_y.c_str());
+ currentAction.w = RealFromStr(_w.c_str());
+ currentAction.h = RealFromStr(_h.c_str());
+ }
+ else if (actionType == "querygpubounds")
+ {
+ currentAction.type = AT_QueryGPUBounds;
+ inp >> currentAction.textargs;
+ }
+ else if (actionType == "screenshot")
+ {
+ currentAction.type = AT_ScreenShot;
+ inp >> currentAction.textargs;
+ }