Erwan
- a few extra cards in Alara - Added missing phaseRing files (sorry...)
This commit is contained in:
34
projects/mtg/include/PhaseRing.h
Normal file
34
projects/mtg/include/PhaseRing.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _PHASERING_H_
|
||||
#define _PHASERING_H_
|
||||
|
||||
#include <list>
|
||||
using std::list;
|
||||
|
||||
/*
|
||||
The class that handles the phases of a turn
|
||||
*/
|
||||
|
||||
class Player;
|
||||
|
||||
class Phase{
|
||||
public:
|
||||
int id;
|
||||
Player * player;
|
||||
Phase(int _id, Player * _player):id(_id),player(_player){};
|
||||
};
|
||||
|
||||
class PhaseRing{
|
||||
public:
|
||||
list<Phase *> ring;
|
||||
list<Phase *>::iterator current;
|
||||
Phase * getCurrentPhase();
|
||||
Phase * forward();
|
||||
Phase * goToPhase(int id, Player * player);
|
||||
PhaseRing(Player* players[], int nbPlayers=2);
|
||||
~PhaseRing();
|
||||
int addPhase(Phase * phase);
|
||||
int addPhaseBefore(int id, Player* player,int after_id, Player * after_player, int allOccurences = 1);
|
||||
int removePhase (int id, Player * player, int allOccurences = 1);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user