* Fix a few warnings.
This commit is contained in:
jean.chalard
2008-11-10 14:52:52 +00:00
parent c72fbbd20c
commit 98d8f8c833
11 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ public:
virtual int displayStack(){return 0;}
AIStats * stats;
ManaCost * getPotentialMana();
AIPlayer(MTGPlayerCards * _deck, char * deckFile);
AIPlayer(MTGPlayerCards * _deck, string deckFile);
virtual ~AIPlayer();
virtual MTGCardInstance * chooseCard(TargetChooser * tc, MTGCardInstance * source, int random = 0);
virtual int chooseTarget(TargetChooser * tc = NULL);
+1 -1
View File
@@ -103,7 +103,7 @@ class ABasicAbilityModifierUntilEOT:public TargetAbility{
int modifier;
int stateBeforeActivation[50];
int ability;
ABasicAbilityModifierUntilEOT(int _id, MTGCardInstance * _source, int _ability, ManaCost * _cost, TargetChooser * _tc = NULL, int _modifier = 1): TargetAbility(_id,_source,_cost),ability(_ability), modifier(_modifier){
ABasicAbilityModifierUntilEOT(int _id, MTGCardInstance * _source, int _ability, ManaCost * _cost, TargetChooser * _tc = NULL, int _modifier = 1): TargetAbility(_id,_source,_cost),modifier(_modifier), ability(_ability){
nbTargets = 0;
tc = _tc;
if (!tc) tc = NEW CreatureTargetChooser(_source);
+1 -1
View File
@@ -25,7 +25,7 @@ using std::map;
class AbilityFactory{
private:
int destroyAllFromTypeInPlay(char * type, MTGCardInstance * source, int bury = 0);
int destroyAllFromTypeInPlay(const char * type, MTGCardInstance * source, int bury = 0);
int destroyAllFromColorInPlay(int color, MTGCardInstance * source, int bury = 0);
int putInPlayFromZone(MTGCardInstance * card, MTGGameZone * zone, Player * p);
public:
+2 -2
View File
@@ -1,7 +1,7 @@
#ifndef _PLAYER_H_
#define _PLAYER_H_
#include <JGE.h>
#include "JGE.h"
#include "ManaCost.h"
#include "MTGGameZones.h"
#include "Damage.h"
@@ -23,7 +23,7 @@ class Player: public Damageable, public Targetable{
MTGPlayerCards * game;
int testLife();
int afterDamage();
Player(MTGPlayerCards * _deck, char * deckFile);
Player(MTGPlayerCards * _deck, string deckFile);
virtual ~Player();
void unTapPhase();
MTGInPlay * inPlay();
+1 -1
View File
@@ -15,7 +15,7 @@
#ifdef _DEBUG
#define OutputDebugString(val) (std::cerr << val);
#else
#define OutputDebugString(val)
#define OutputDebugString(val) {}
#endif
#endif