22 #ifndef AGS_ENGINE_AC_MOVE_LIST_H 23 #define AGS_ENGINE_AC_MOVE_LIST_H 25 #include "ags/lib/allegro.h" 26 #include "ags/engine/game/savegame.h" 27 #include "ags/shared/util/geometry.h" 39 #define MAXNEEDSTAGES 256 40 #define MAXNEEDSTAGES_LEGACY 40 42 enum MoveListDoneFlags {
43 kMoveListDone_X = 0x01,
44 kMoveListDone_Y = 0x02,
45 kMoveListDone_XY = kMoveListDone_X | kMoveListDone_Y
48 enum MoveListSvgVersion {
49 kMoveSvgVersion_Initial = 0,
51 kMoveSvgVersion_36109,
57 Point pos[MAXNEEDSTAGES];
60 fixed xpermove[MAXNEEDSTAGES]{};
61 fixed ypermove[MAXNEEDSTAGES]{};
68 uint8_t doneflag = 0u;
75 float fin_from_part = 0.f;
77 const Point &GetLastPos()
const {
return numstage > 0 ? pos[numstage - 1] : pos[0]; }
81 float GetStepLength()
const;
84 float GetPixelUnitFraction()
const;
86 void SetPixelUnitFraction(
float frac);
Definition: achievements_tables.h:27
Definition: move_list.h:54
Definition: geometry.h:87