This is probably a noobish question that has been answered before, but I can't seem to find a solution online (Google is not being friendly). My question is, relating to Cocos2d, how would I pass 2 parameters using a self method. An Example of my Code
-(void)Random {
[self AiCharacter:theEvilOne];
[self AiCharacter:theEvilTwo];
}
-(void)AiCharacter(CCSprite*)EvilCharacter {
//stuff
}
But I want to do something like the following
-(void)Random {
num = 1
[self AiCharacter:theEvilOne, Num];
num = 2
[self AiCharacter:theEvilTwo, Num];
}
-(void)AiCharacter:(CCSprite*)EvilCharacter (NSInteger*)num { //This line is what seems to be incorrectly formatted/syntactically incorrect.
//stuff
}
To give you some more info into what I am doing is that I have an multi-dimensional array of values relating to my separate AI Characters and have the num value to differentiate the rows pertaining to each sprite.