createFlag = false;
}
+ if(Uselected)
+ if(Uselected->dead){
+ Uselected = NULL;
+ }
+
+ if(cslRdy){
+ [self LookupSummonRange:possionY startY:possionX aPiece:&UC[unitNum[possionX][possionY]] turnSide:YES];
+ cslRdy = false;
+ }
+
+ if(buildCaptureFlag && unitMoveEndFlag){
+
+ BTop = B;
+ while (B) {
+ if(B->x == Uselected->x && B->y == Uselected->y){
+ if(Uselected->team == 0) B->team = 0;
+ if(Uselected->team == 1) B->team = 1;
+ if(Uselected->team == 2) B->team = 2;
+ unitColorInitFlag = true;
+ }
+ B = B->next;
+ }B = BTop;
+
+ buildCaptureFlag = false;
+ }
+
if(unitColorInitFlag){
U = UTop;
while(U){
unitColorInitFlag = false;
}
- if(Uselected)
- if(Uselected->dead){
- Uselected = NULL;
- }
-
- if(cslRdy){
- [self LookupSummonRange:possionY startY:possionX aPiece:&UC[unitNum[possionX][possionY]] turnSide:YES];
- cslRdy = false;
- }
-
- if(buildCaptureFlag && unitMoveEndFlag){
-
- BTop = B;
- while (B) {
- if(B->x == possionX && B->y == possionY){
- if(Uselected->team == 0) B->team = 0;
- if(Uselected->team == 1) B->team = 1;
- if(Uselected->team == 2) B->team = 2;
- unitColorInitFlag = true;
- }
- B = B->next;
- }B = BTop;
-
- buildCaptureFlag = false;
- }
+
if(cpuAImodeflag){
// Copyright (c) 2012年 Killery. All rights reserved.
//
-
typedef struct _RESIST{
int blow;
}STATUS;
-typedef struct _SKILL{
- struct _SKILL *next;
-
- int index;
- int type;
-
- int list[255];
- double cost[255];
- int Lv[255];
-
-
-}SKILL;
+struct _SKILL;
typedef struct _UNITCHIP{
RESIST R_C;
RESIST R_M;
ATTACK *A;
- SKILL *S;
+ struct _SKILL *S;
NSString *name;
NSString *nameNick;
}UNITCHIP;
+typedef struct _SKILL{
+ struct _SKILL *next;
+
+ int index;
+ int type;
+
+ int list[255];
+ double cost[255];
+ int Lv[255];
+ UNITCHIP UC[255];
+
+}SKILL;
+
typedef struct _SKILLLIST{
struct _SKILLLIST *next;