Fixed warnings from linux and Android compilers
Cleaned up network code on Linux, it still does not work correctly
This commit is contained in:
@@ -107,6 +107,7 @@ class SimpleCardEffect
|
||||
public:
|
||||
virtual void doEffect(Pos * card) = 0;
|
||||
virtual void undoEffect(Pos * card) = 0;
|
||||
virtual ~SimpleCardEffect(){};
|
||||
};
|
||||
|
||||
class SimpleCardEffectRotate:public SimpleCardEffect
|
||||
|
||||
@@ -17,5 +17,5 @@ private:
|
||||
public:
|
||||
DeckEditorMenu(int id, JGuiListener* listener = NULL, int fontId = 1, const char * _title = "", DeckDataWrapper *selectedDeck = NULL, StatsWrapper *stats = NULL);
|
||||
void Render();
|
||||
~DeckEditorMenu();
|
||||
virtual ~DeckEditorMenu();
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ protected:
|
||||
|
||||
public:
|
||||
DuelLayers(GameObserver* go, int playerViewIndex = 0);
|
||||
~DuelLayers();
|
||||
virtual ~DuelLayers();
|
||||
|
||||
ActionLayer * actionLayer();
|
||||
ActionStack * stackLayer();
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
virtual ~GameStateDuel();
|
||||
#ifdef TESTSUITE
|
||||
void loadTestSuitePlayers();
|
||||
void setupTestSuite();
|
||||
#endif
|
||||
|
||||
#ifdef AI_CHANGE_TESTING
|
||||
|
||||
@@ -16,6 +16,7 @@ struct HandLimitor : public Limitor
|
||||
virtual bool greyout(Target*);
|
||||
|
||||
HandLimitor(GuiHand* hand);
|
||||
virtual ~HandLimitor(){};
|
||||
};
|
||||
|
||||
class GuiHand : public GuiLayer
|
||||
|
||||
@@ -31,9 +31,6 @@ typedef enum
|
||||
PLAYER_TYPE_HUMAN = 1,
|
||||
PLAYER_TYPE_TESTSUITE = 2,
|
||||
PLAYER_TYPE_CPU_TEST = 3,
|
||||
#ifdef NETWORK_SUPPORT
|
||||
PLAYER_TYPE_REMOTE = 4
|
||||
#endif //NETWORK_SUPPORT
|
||||
} PlayerType;
|
||||
|
||||
typedef enum
|
||||
|
||||
@@ -85,7 +85,7 @@ class MTGGameZone {
|
||||
vector<MTGCardInstance *> cardsSeenLastTurn;
|
||||
int nb_cards;
|
||||
MTGGameZone();
|
||||
~MTGGameZone();
|
||||
virtual ~MTGGameZone();
|
||||
void shuffle();
|
||||
void addCard(MTGCardInstance * card);
|
||||
void debugPrint();
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
int hasAnotherCost();
|
||||
ManaCost(std::vector<int16_t>& _cost, int nb_elems = 1);
|
||||
ManaCost();
|
||||
~ManaCost();
|
||||
virtual ~ManaCost();
|
||||
ManaCost(ManaCost * _manaCost);
|
||||
ManaCost(const ManaCost& manaCost);
|
||||
ManaCost& operator= (const ManaCost& manaCost);
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
virtual int canPutIntoZone(MTGCardInstance * card, MTGGameZone * destZone) = 0;
|
||||
|
||||
PlayRestriction(TargetChooser * tc);
|
||||
~PlayRestriction();
|
||||
virtual ~PlayRestriction();
|
||||
};
|
||||
|
||||
class MaxPerTurnRestriction: public PlayRestriction
|
||||
|
||||
@@ -10,6 +10,7 @@ struct Pos
|
||||
float width, height;
|
||||
PIXEL_TYPE mask;
|
||||
Pos(float, float, float, float, float);
|
||||
virtual ~Pos(){};
|
||||
virtual void Update(float dt);
|
||||
void UpdateNow();
|
||||
virtual void Render();
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
// End of AI deck buffering code
|
||||
|
||||
Task(char _type = ' ');
|
||||
virtual ~Task(){};
|
||||
|
||||
static Task* createFromStr(const string params, bool rand = false);
|
||||
virtual string toString();
|
||||
|
||||
Reference in New Issue
Block a user