22 #ifndef QDENGINE_MINIGAMES_ADV_M_PUZZLE_H 23 #define QDENGINE_MINIGAMES_ADV_M_PUZZLE_H 25 #include "qdengine/minigames/adv/MinigameInterface.h" 26 #include "qdengine/minigames/adv/FlyObject.h" 30 MinigameInterface *createMinigamePuzzle(MinigameManager *runtime);
38 bool inStack()
const {
45 Node() : angle(1), pos(-1) {}
61 float _rotateTimePeriod = 0.f;
62 float _nextRotateTime = 0.f;
64 bool _singleSize =
false;
76 float _nextObjTime = 0.f;
77 int _mouseObjPose = -1;
88 float _flySpeed = 0.f;
90 float _returnSpeed = -1.f;
94 const char *getStateName(
int angle,
bool selected,
bool small)
const;
96 void rotate(
int hovItem);
98 bool testPlace(
int idx)
const;
100 bool isOnMouse(
const Node& node)
const;
102 bool isFlying(
int idx)
const;
104 int stidx(
int idx)
const;
106 void put(
int where,
int what,
float flowSpeed = -1.f);
108 void putOnStack(
int what,
float speed);
110 void returnToStack();
112 const mgVect3f &position(
int num)
const;
114 mgVect3f stackPosition(
int N)
const;
121 #endif // QDENGINE_MINIGAMES_ADV_M_PUZZLE_H
Definition: MinigameInterface.h:27
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: m_puzzle.h:32