Fixed warnings from linux and Android compilers

Cleaned up network code on Linux, it still does not work correctly
This commit is contained in:
Xawotihs@gmail.com
2013-01-26 22:17:43 +00:00
parent 5b0f5bd90f
commit eec9bb44a8
20 changed files with 25 additions and 27 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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();
};
+1 -1
View File
@@ -34,7 +34,7 @@ protected:
public:
DuelLayers(GameObserver* go, int playerViewIndex = 0);
~DuelLayers();
virtual ~DuelLayers();
ActionLayer * actionLayer();
ActionStack * stackLayer();
+1
View File
@@ -53,6 +53,7 @@ public:
virtual ~GameStateDuel();
#ifdef TESTSUITE
void loadTestSuitePlayers();
void setupTestSuite();
#endif
#ifdef AI_CHANGE_TESTING
+1
View File
@@ -16,6 +16,7 @@ struct HandLimitor : public Limitor
virtual bool greyout(Target*);
HandLimitor(GuiHand* hand);
virtual ~HandLimitor(){};
};
class GuiHand : public GuiLayer
-3
View File
@@ -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
+1 -1
View File
@@ -85,7 +85,7 @@ class MTGGameZone {
vector<MTGCardInstance *> cardsSeenLastTurn;
int nb_cards;
MTGGameZone();
~MTGGameZone();
virtual ~MTGGameZone();
void shuffle();
void addCard(MTGCardInstance * card);
void debugPrint();
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -23,7 +23,7 @@ public:
virtual int canPutIntoZone(MTGCardInstance * card, MTGGameZone * destZone) = 0;
PlayRestriction(TargetChooser * tc);
~PlayRestriction();
virtual ~PlayRestriction();
};
class MaxPerTurnRestriction: public PlayRestriction
+1
View File
@@ -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();
+1
View File
@@ -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();