* Some more tweaking for combat.
* This still doesn't work, but it's closer.
This commit is contained in:
jean.chalard
2009-09-03 02:16:53 +00:00
parent a7bef9142c
commit 7214248494
15 changed files with 145 additions and 203 deletions
+2 -15
View File
@@ -40,7 +40,7 @@ class Damage: public Interruptible {
};
class DamageStack :public GuiLayer, public Interruptible{
class DamageStack : public GuiLayer, public Interruptible{
protected:
int currentState;
GameObserver* game;
@@ -49,20 +49,7 @@ class DamageStack :public GuiLayer, public Interruptible{
int resolve();
void Render();
virtual ostream& toString(ostream& out) const;
DamageStack(GameObserver* game);
DamageStack();
};
class StableDamageStack : public Interruptible {
protected:
vector<Damage*> damage;
public:
int resolve();
void Render();
void Add(Damage*);
virtual ostream& toString(ostream& out) const;
};
#endif
+2 -3
View File
@@ -31,11 +31,9 @@ class GameObserver{
int nbPlayers;
int currentPlayerId;
int currentRound;
int blockersAssigned;
public:
int blockersSorted;
CombatStep combatStep;
int turn;
int forceShuffleLibraries();
int targetListIsSet(MTGCardInstance * card);
@@ -57,6 +55,7 @@ class GameObserver{
void cardClick(MTGCardInstance * card,Targetable * _object = NULL );
int enteringPhase(int phase);
int getCurrentGamePhase();
void nextCombatStep();
void userRequestNextGamePhase();
void nextGamePhase();
void cleanupPhase();
+2 -2
View File
@@ -7,7 +7,7 @@
#include "CardGui.h"
#include "GuiAvatars.h"
class TransientCardView;
class CardView;
struct GuiStatic : public PlayGuiObject{
GuiAvatars* parent;
@@ -35,7 +35,7 @@ struct GuiAvatar : public GuiStatic{
struct GuiGameZone : public GuiStatic{
static const int Width = 20;
static const int Height = 25;
vector<TransientCardView*> cards;
vector<CardView*> cards;
public:
MTGGameZone * zone;
+1 -1
View File
@@ -10,7 +10,7 @@ using std::list;
class Player;
typedef enum { ORDER, FIRST_STRIKE, DAMAGE } CombatStep;
typedef enum { BLOCKERS, ORDER, FIRST_STRIKE, DAMAGE } CombatStep;
class Phase{
public:
int id;