- Fixed compilation warning in GameStateShop.cpp
- Added a call to input reset after each update in the Qt frontends to avoid strange auto-keypress - Removed tutorial display in AI vs AI (test AI mode) - Commit Qt project with latest buttons files - Added a small isHuman method to the Player class
This commit is contained in:
@@ -67,6 +67,7 @@ public:
|
|||||||
m_engine->ReleaseKey(m_buttonQueue.front());
|
m_engine->ReleaseKey(m_buttonQueue.front());
|
||||||
m_buttonQueue.pop();
|
m_buttonQueue.pop();
|
||||||
}
|
}
|
||||||
|
m_engine->ResetInput();
|
||||||
};
|
};
|
||||||
Q_INVOKABLE void pixelInput(int x, int y);
|
Q_INVOKABLE void pixelInput(int x, int y);
|
||||||
Q_INVOKABLE qint64 getTick() {
|
Q_INVOKABLE qint64 getTick() {
|
||||||
|
|||||||
@@ -75,6 +75,11 @@ public:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isHuman()
|
||||||
|
{
|
||||||
|
return (playMode == MODE_HUMAN);
|
||||||
|
}
|
||||||
|
|
||||||
Player * opponent();
|
Player * opponent();
|
||||||
int getId();
|
int getId();
|
||||||
JQuadPtr getIcon();
|
JQuadPtr getIcon();
|
||||||
|
|||||||
@@ -835,7 +835,8 @@ void ActionStack::Update(float dt)
|
|||||||
{
|
{
|
||||||
//This is a hack to avoid updating the stack while tuto messages are being shown
|
//This is a hack to avoid updating the stack while tuto messages are being shown
|
||||||
//Ideally, the tuto messages should be moved to a layer above this one
|
//Ideally, the tuto messages should be moved to a layer above this one
|
||||||
if (getCurrentTutorial())
|
//No need for Tuto when no human in game
|
||||||
|
if (getCurrentTutorial() && (observer->players[0]->isHuman() || observer->players[1]->isHuman() ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
askIfWishesToInterrupt = NULL;
|
askIfWishesToInterrupt = NULL;
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ float GameStateShop::_y4[] = { 169, 188, 250, 182, 182, 168, 220, 208, 198, 259,
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
float kGamepadIconSize = 0.5f;
|
|
||||||
std::string kOtherCardsString(": Other cards");
|
std::string kOtherCardsString(": Other cards");
|
||||||
std::string kCreditsString("Credits: ");
|
std::string kCreditsString("Credits: ");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ SOURCES += \
|
|||||||
src/GuiPlay.cpp\
|
src/GuiPlay.cpp\
|
||||||
src/GuiStatic.cpp\
|
src/GuiStatic.cpp\
|
||||||
src/IconButton.cpp\
|
src/IconButton.cpp\
|
||||||
|
src/InteractiveButton.cpp\
|
||||||
src/ManaCost.cpp\
|
src/ManaCost.cpp\
|
||||||
src/ManaCostHybrid.cpp\
|
src/ManaCostHybrid.cpp\
|
||||||
src/MenuItem.cpp\
|
src/MenuItem.cpp\
|
||||||
@@ -126,6 +127,7 @@ SOURCES += \
|
|||||||
src/PriceList.cpp\
|
src/PriceList.cpp\
|
||||||
src/ReplacementEffects.cpp\
|
src/ReplacementEffects.cpp\
|
||||||
src/Rules.cpp\
|
src/Rules.cpp\
|
||||||
|
src/SimpleButton.cpp\
|
||||||
src/SimpleMenu.cpp\
|
src/SimpleMenu.cpp\
|
||||||
src/SimpleMenuItem.cpp\
|
src/SimpleMenuItem.cpp\
|
||||||
src/SimplePad.cpp\
|
src/SimplePad.cpp\
|
||||||
@@ -268,6 +270,8 @@ HEADERS += \
|
|||||||
include/DeckManager.h\
|
include/DeckManager.h\
|
||||||
include/SimplePopup.h\
|
include/SimplePopup.h\
|
||||||
include/SimpleMenu.h\
|
include/SimpleMenu.h\
|
||||||
|
include/SimpleButton.h\
|
||||||
|
include/InteractiveButton.h\
|
||||||
include/ObjectAnalytics.h
|
include/ObjectAnalytics.h
|
||||||
|
|
||||||
# JGE, could probably be moved outside
|
# JGE, could probably be moved outside
|
||||||
|
|||||||
Reference in New Issue
Block a user