J :
* Define floats in the .cpp instead of the .h (visual says I should, that's why)
This commit is contained in:
@@ -17,10 +17,10 @@ struct CardGui : public PlayGuiObject {
|
||||
JQuad* quad;
|
||||
|
||||
public:
|
||||
static const float Width = 28.0;
|
||||
static const float Height = 40.0;
|
||||
static const float BigWidth = 200.0;
|
||||
static const float BigHeight = 285.0;
|
||||
static const float Width;
|
||||
static const float Height;
|
||||
static const float BigWidth;
|
||||
static const float BigHeight;
|
||||
|
||||
MTGCardInstance* card;
|
||||
CardGui(MTGCardInstance* card, float x, float y);
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
#include "../include/MTGDefinitions.h"
|
||||
#include <Vector2D.h>
|
||||
|
||||
|
||||
const float CardGui::Width = 28.0;
|
||||
const float CardGui::Height = 40.0;
|
||||
const float CardGui::BigWidth = 200.0;
|
||||
const float CardGui::BigHeight = 285.0;
|
||||
|
||||
CardGui::CardGui(MTGCardInstance* card, float x, float y) : PlayGuiObject(Height, x, y, false), quad(cache.getQuad(card)), card(card) {}
|
||||
CardGui::CardGui(MTGCardInstance* card, const Pos& ref) : PlayGuiObject(Height, ref, false), quad(cache.getQuad(card)), card(card) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user