C++ ?汾?????????????
???????????? ???????[ 2015/10/9 13:30:03 ] ????????.NET ???????????
?????????????????????????????????????????????????Щ????????棬??????????????δ??????????????д????????????????????鷳???????????????????????????????????????????????????????У?????????????????
???????Id???????????????????????????????????????????????????
AINodeDescribe des[] = {
AINodeDescribe(1?? 0?? ANBT_SELECT?? "?????")??
AINodeDescribe(2?? 1?? ANBT_SEQUENCE?? "??????????ж????")??
AINodeDescribe(5?? 2?? ANT_RELEASE_SKILL?? "????????????")??
AINodeDescribe(6?? 2?? ANT_PICKING_UP_COINS?? "????????")??
AINodeDescribe(3?? 1?? ANBT_SEQUENCE?? "??????????????ж????")??
AINodeDescribe(7?? 3?? ANT_RELEASE_SKILL?? "????????????м????????")??
AINodeDescribe(8?? 3?? ANT_PICKING_UP_COINS?? "????????????л???????????")??
AINodeDescribe(9?? 3?? ANT_PICKING_UP_COINS?? "?????????????н??")??
AINodeDescribe(4?? 1?? ANT_PICKING_UP_COINS?? "?????????")??
};
int desCount = sizeof(des) / sizeof(AINodeDescribe);
vector<AINodeDescribe> des_vtr;
for (int i = 0; i < desCount; ++i)
{
des_vtr.push_back(des[i]);
}
AINodeBase * rootNode = AINodeHelper::sharedHelper()->CreateNodeTree(des_vtr);
????AINodeDescribe?????????????????????????Id???????Id?????????????????????????????????????????????и?????????0??????????????????????????????????????????????NULL??????????????н??????????й???
???????????????????????д??????У???????????????г???????????????????????????????????????д?????й?????????????????????????д???????????????????Ч??????á??????????????ε???????????????????????ò???????ж????????????????
??????????????????????????????????????д????????????????????н????????????????????????????????′????????????
????cout << " ???????? " << endl;
????AINodeHelper::sharedHelper()->printAITree(rootNode);
????cout << " ???????? " << endl;
??????????????????????????
??????μ?????????????????????????????????????????????????????????????????????????????????????????????????н?????????????????
????for (int i = 0; i < 10; ++i)
????{
????cout << "?????????" << endl;
????rootNode->invoke(0?? true);
????cout << "??????????" << endl;
????}
????????invoke??????????????????????????λ?????????????????Log???????????????????????????????????
?????????????????
????http://git.oschina.net/anxin1225/AiTreeTest
???????????????????????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??C++????????????C++ lvalue??rvalueC++11????????C++???????????????C++?е?????????????????C++?????????C++???Windows????λ??C/C++???????????????????JAVA??C??C++??????????c++??python???????????????????????????????C++???????C++?е????????C++????????????????C++ ???????????????C++?????????????????????C++????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????