- The AI can now use May Abilities
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-25 11:43:36 +00:00
parent 760910709a
commit 8cc2fc9d52
9 changed files with 83 additions and 58 deletions

View File

@@ -115,12 +115,19 @@ TargetChooser * ActionLayer::getCurrentTargetChooser(){
return NULL;
}
int ActionLayer::isWaitingForAnswer(){
int ActionLayer::cancelCurrentAction(){
ActionElement * ae = isWaitingForAnswer();
if (!ae) return 0;
ae->waitingForAnswer = 0; //TODO MOVE THIS IS ActionElement
return 1;
}
ActionElement * ActionLayer::isWaitingForAnswer(){
for (int i=0;i<mCount;i++){
ActionElement * currentAction = (ActionElement *)mObjects[i];
if(currentAction->waitingForAnswer) return 1;
if(currentAction->waitingForAnswer) return currentAction;
}
return 0;
return NULL;
}
int ActionLayer::stillInUse(MTGCardInstance * card){