Win32下的CCTouch对象缺少view()函数?

使用的的cocos2d-x版本是cocos2d-2.0-rc0a-x-2.0

在学习SimpleGame示例的时候

学习到第4章节发射飞镖时候

.ccp中

void HelloWorld::ccTouchesEnded(CCSet* touches, CCEvent* event)函数下

// Choose one of the touches to work with
CCTouch* touch = (CCTouch*)( touches->anyObject() );
CCPoint location = touch->locationInView(touch->view());

报错在
CCPoint location = touch->locationInView(touch->view());
这行

跟踪后发现CCTouch并没有view()这个函数

然后我去下了flyingpacer-Cocos2dxSimpleGame的代码示例后发现他的版本中CCTouch却是有这个函数的

仔细检查过include,没有发现忘记引用有文件的情况

有没人遇到此问题?

2.0版本的应该不需要带参数了。
CCPoint location = touch->locationInView();就可以了

楼上正解。

Coach Kristin Purses dim coach Provider by

These that figure out may perhaps emphasize you will discover quite a lot of companies concerning the company making an attempt to market phony Coach Outlet stores to have an opportunity to unwary clients. Make certain that you surely not permit within your unique by any means events grow to be amongst people today who could possibly turn out to be perplexed via essentially these kinds of sort of artificial actual physical fitness coach baggage. The good thing is, you will find tons of processes to very easily place replicas. For people that http://www.cheapcoachbagscvs.com/coach-madison-bags-c-8.html notice outstanding consumer treatment, you may most likely have a chance to identify any type of bogus at any time. Seem out for just one which will have numerous the particular equivalent group close to your company You can expect to be able to look via website internet sites which will market the particular phony coach http://www.cheapcoachbagscvs.com/coach-wallets-c-10.html purses to become in a position to renegotiate delivers inside of fantastic bargain additionally to unethical merchants typically area money in to this kind of destinations inside purchase that they will have several by means of significantly specifically the exact same purses furthermore to handbags. Possibly quite possibly the most beneficial means to fix decide any type of bogus carrier would be to take a look at them and also enable pictures spot http://www.cheapcoachbagscvs.com/coach-purses-new-arrival-c-1.html upwards though using the seller. Merchants regarding phony mentor baggage usually purchase images concerning precise coach 6042 Mentor Kristin Purses dim mentor Carrier through their assertion; you are likely to have the ability to probably turn into much greater to remain apart from http://www.cheapcoachbagscvs.com/coach-purses-new-arrival-c-1.html these kinds of merchants. And finally, in the event just one picture concerning low superior may possibly be acquired, the seller may perhaps be concealing many spots which signify you must deliver obvious on top of that to this kind of obtain. The somewhat excellent products image may well usually give http://www.cheapcoachbagscvs.com/coach-alexandra-bags-c-2.html an exquisite make contact with to the fingers baggage authenticity.

Relevant Content articles - coach, outlet,

Electronic mail this article into a Buddy!

Receive Articles such as this one particular immediate towards your electronic mail box!Subscribe without cost nowadays!

Business/article_detail.cfm/4427007?articleid=4427007

CCPoint location = touch->locationInView(touch->view());
locationInView没有参数,从13版本开始就没有了

多用F12进去看人家的实现

2.0版本的应该不需要带参数了。
CCPoint location = touch->locationInView();就可以了

楼上正解。

CCPoint location = touch->locationInView(touch->view());
locationInView没有参数,从13版本开始就没有了

多用F12进去看人家的实现