* Define const values in the cpp file.
This commit is contained in:
jean.chalard
2009-08-22 06:33:32 +00:00
parent 60be60b793
commit f2ac56a7e2
2 changed files with 13 additions and 5 deletions
+5 -5
View File
@@ -22,12 +22,12 @@ struct HandLimitor : public Limitor
class GuiHand : public GuiLayer class GuiHand : public GuiLayer
{ {
public: public:
static const float ClosedRowX = 459; static const float ClosedRowX;
static const float LeftRowX = 420; static const float LeftRowX;
static const float RightRowX = 460; static const float RightRowX;
static const float OpenX = 394; static const float OpenX;
static const float ClosedX = 494; static const float ClosedX;
protected: protected:
const MTGHand* hand; const MTGHand* hand;
+8
View File
@@ -2,6 +2,14 @@
#include "../include/GameApp.h" #include "../include/GameApp.h"
#include "../include/GuiHand.h" #include "../include/GuiHand.h"
const float GuiHand::ClosedRowX = 459;
const float GuiHand::LeftRowX = 420;
const float GuiHand::RightRowX = 460;
const float GuiHand::OpenX = 394;
const float GuiHand::ClosedX = 494;
bool HandLimitor::select(Target* t) bool HandLimitor::select(Target* t)
{ {
vector<CardView*>::iterator it; vector<CardView*>::iterator it;