22 #ifndef QDENGINE_MINIGAMES_ADV_M_SWAP_H 23 #define QDENGINE_MINIGAMES_ADV_M_SWAP_H 25 #include "qdengine/minigames/adv/MinigameInterface.h" 29 MinigameInterface *createMinigameSwap(MinigameManager *runtime);
41 float _rotateTimePeriod = 0.5f;
42 float _nextRotateTime = 0.f;
47 Node(
int idx = -1) : home(idx), angle(0) {}
58 int _last1 = 0, _last2 = 0;
62 const char *getStateName(
int angle,
bool selected)
const;
64 void swap(
int item1,
int item2,
bool silent);
66 void rotate(
int item1,
int item2,
bool silent,
bool avto =
false);
70 bool testPlace(
int idx)
const;
72 void put(
int idx,
bool hl);
74 const mgVect3f &position(
int num)
const;
81 #endif // QDENGINE_MINIGAMES_ADV_M_SWAP_H
Definition: MinigameInterface.h:27
Базовый класс для игровых ресурсов.
Definition: console.h:28