{
CCSetIterator it=pTouches - & gt; The begin ();
CCTouch * touch=(CCTouch *) (* it);
CCPoint location=touch - & gt; LocationInView ();
CCPoint convertedLocation=CCDirector: : sharedDirector () - & gt; ConvertToGL (location);
//conversion coordinate transform UIKit coordinates into OpenGL coordinate
Double x=convertedLocation. X;
Double y=convertedLocation. Y;
If (x>=72 & amp; & X<=498 & amp; & Y>=87 & amp; & y<=515)//determine whether on board area
{
//calculation posts of the seats that can place them on a grid, it must be Gao Qingchu board
the coordinates of the upper left and lower rightDouble mx=(x - 72)/30.0;
A=(int) mx;
(mx - a) & gt; 0.5? A=a + 1: a;
Double my=(y - 87)/30.0;
B=(int) my;
(my - b) & gt;=0.5? B=b + 1: b;
If (ch [a] [b]==2)//the original where the child is not in the post
{
Ch [a] [b]=tp % 2;
If (ch [a] [b]==0)
{
Printpart (a, b, tp % 2);
}
Else if (ch [a] [b]==1)
{
Printpart (a, b, tp % 2);
}
Tp=tp + 1;
}
}
}
"Chessboard" is not found in overloaded member function
Printpart no problem, I do not know what is the problem
CodePudding user response:
I am such a question,CcTouchesBegan (CCSet * pTouches, CCEvent * pEvent)
Can not find this method ccTouchesBegan,
Also CCSet prompt undefined,
Don't know if version of the problem,
Who knows?
CodePudding user response:
It appears to be a collection of c + + class, I've seen Cocos2d CCSet used in a lot of, you add a header file CCSet. H try, tip can't find the words to the next try online,