- Added crude possibility to search for the library (see Diabolic tutor)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-30 08:11:47 +00:00
parent b0eed5ea2e
commit b35195dddf
11 changed files with 68 additions and 105 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class CardDisplay:public PlayGuiObjectController{
TargetChooser * tc;
JGuiListener * listener;
CardDisplay();
CardDisplay(int id, GameObserver* _game, int _x, int _y, JGuiListener * _listener, TargetChooser * _tc = NULL, int _nb_displayed_items = 7 );
CardDisplay(int id, GameObserver* _game, int _x, int _y, JGuiListener * _listener = NULL, TargetChooser * _tc = NULL, int _nb_displayed_items = 7 );
void AddCard(MTGCardInstance * _card);
void rotateLeft();
void rotateRight();
+2 -2
View File
@@ -10,8 +10,6 @@
#include "TargetChooser.h"
#include "PhaseRing.h"
#define MAX_GAME_OBSERVERS 500
class MTGGamePhase;
class MTGAbility;
@@ -34,7 +32,9 @@ class GameObserver{
public:
int forceShuffleLibrary[2];
int turn;
int forceShuffleLibraries();
int targetListIsSet(MTGCardInstance * card);
PhaseRing * phaseRing;
int cancelCurrentAction();
+2 -1
View File
@@ -31,7 +31,7 @@ class TargetChooser: public TargetsList {
MTGCardInstance * source; //Optionnal source, used for protection from...
int maxtargets; //Set to -1 for "unlimited"
virtual int targetsZone(MTGGameZone * z){return 0;};
int ForceTargetListReady();
int targetsReadyCheck();
virtual int addTarget(Targetable * target);
@@ -57,6 +57,7 @@ class TargetZoneChooser:public TargetChooser{
MTGGameZone * zones[6];
int nbzones;
int init(MTGGameZone ** _zones, int _nbzones);
int targetsZone(MTGGameZone * z);
TargetZoneChooser(MTGCardInstance * card = NULL, int _maxtargets = 1);
TargetZoneChooser(MTGGameZone ** _zones, int _nbzones, MTGCardInstance * card = NULL, int _maxtargets = 1);
virtual int canTarget(Targetable * _card);