This commit is contained in:
wagic.the.homebrew
2008-11-02 09:50:16 +00:00
commit d45e3b101b
726 changed files with 179125 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include "MTGSpellStack.h"
MTGSpellStack::MTGSpellStack(){
cursor = -1;
}
void MTGSpellStack::addSpell(Ability * ability){
cursor++;
spellStack[cursor] ability;
}
int MTGSpellStack::resolve(){
if (cursor < 0)
return 0;
int result = cursor;
cursor--;
(spellStack[cursor + 1])->resolve();
return (result+1);
}