22 #ifndef QDENGINE_MINIGAMES_ADV_M_TRIANGLES_H 23 #define QDENGINE_MINIGAMES_ADV_M_TRIANGLES_H 25 #include "qdengine/minigames/adv/common.h" 26 #include "qdengine/minigames/adv/MinigameInterface.h" 27 #include "qdengine/minigames/adv/ObjectContainer.h" 31 MinigameInterface *createMinigameTriangle(MinigameManager *runtime);
48 Node(
int number = -1,
int rot = -1);
51 void debugInfo()
const;
54 return _isBack ? _back : _face[_flip];
69 static const Common::String getFaceStateName(
int angle,
bool selected,
bool animated,
bool instantaneous);
70 static const char *getBackStateName(
bool selected,
bool animated,
bool instantaneous);
71 static const char *getBorderStateName(
bool selected);
81 GameType _gameType = TRIANGLE;
94 bool _quickReselect =
false;
96 AnimationState _animationState = NO_ANIMATION;
97 int _animatedNodes[2] = { 0 };
98 float _animationTime = 0.0;
99 float _animationTimer = 0.0;
102 void releaseNodeBack(Node &node);
104 void updateNode(Node &node,
int position,
int flip = 0,
bool quick =
false);
106 void highlight(
int idx,
bool hl);
109 void swapNodes(
int pos1,
int pos2,
bool quick);
111 void beginSwapNodes(
int pos1,
int pos2);
113 bool animate(
float dt);
115 void endSwapNodes(
int pos1,
int pos2);
118 int rowByNum(
int num)
const;
120 int rowBegin(
int row)
const;
122 int orientation(
int num)
const;
124 bool compatible(
int num1,
int num2)
const;
126 int getRotate(
int num1,
int num2)
const;
128 int destination(
int num1,
int num2)
const;
130 mgVect3f slotCoord(
int pos,
int angle = 0)
const;
137 #endif // QDENGINE_MINIGAMES_ADV_M_TRIANGLES_H
Definition: MinigameInterface.h:27
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: m_triangles.h:33
Definition: ObjectContainer.h:27