Erwan
- Added crude possibility to search for the library (see Diabolic tutor)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user