• Create Account

### #ActualCanvas

Posted 08 July 2012 - 06:03 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana smaller Or equals To cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

### #6Canvas

Posted 08 July 2012 - 06:03 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana < cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

### #5Canvas

Posted 08 July 2012 - 06:03 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana <equals cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

### #4Canvas

Posted 08 July 2012 - 06:03 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana <"equals" cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

### #3Canvas

Posted 08 July 2012 - 06:02 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana < cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

### #2Canvas

Posted 08 July 2012 - 06:02 AM

I dont fully understand the you play 1 more mana, do you mean if you play the card which is 2 mana and play another mana which is a total of 3 you can draw another card?
Well to be honest each player could have a int called mana, this variable can be public or private its your choice, and every turn mana is += to the increaseMana. to check for the mana you would do a simple if statement, in this if statement the "cards" for the game will be stored inside a vector (kinda like a arraylist)

[source lang="cpp"]if(mana <= cards.at(52).returnManaCost){ return true;}else{ return false;}[/source]

if it returns true, you can then create a method that will do the card power, if its false do nothing, if you need anymore help just post again

PARTNERS