wtRdy3 = false;
battleEndFlag = false;
initStatusFlag = true;
- unitBreak = U;
TeamCountFlag = true;
cpuTurnEndFlag = false;
unitColorInitFlag = true;
}
-
+ NSLog(@"%p", UTop);
if(wtRdy3)
return;
-(void)addUnitStatus{
registerNum++;
int omgCnt = 0;
- UTop = U;
+ U = UTop;
while (U->next) {omgCnt++;
U = U->next;
}
U->next = calloc(1, sizeof(UNIT));
U = U->next;
U->next = NULL;
- if(omgCnt == 0) UTop = U;
+ if(omgCnt == 0) U = UTop;
U->number = registerNum;
for(int i = 0;i < UCN;i++){
-(void)addSummonStatus{
registerNum++;
int omgCnt = 0;
- UTop = U;
+ U = UTop;
while (U->next) {omgCnt++;
U = U->next;
}
U->next = calloc(1, sizeof(UNIT));
U = U->next;
U->next = NULL;
- if(omgCnt == 0) UTop = U;
+ if(omgCnt == 0) U = UTop;
U->x = possionX;
-(void)initUnitStatusDat{
U = NULL;
UTop = NULL;
- for(int i = 0;i < registerNum;i++){
+ for(int i = 0;i < sdd2[datRow].registerNum;i++){
if(i == 0){
U = calloc(1, sizeof(UNIT));
UTop = U;
-(void)initBuildStatusDat{
B = NULL;
BTop = NULL;
- for(int i = 0;i < registerNumB;i++){
+ for(int i = 0;i < sdd2[datRow].registerNumB;i++){
if(i == 0){
B = calloc(1, sizeof(BUILD));
BTop = B;
int team2num = 0;
if(MS0->S4.team == 0){
if(!MS0->S4.objeFlag && !MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 0 && !U->dead)
team0num++;
}else if(MS0->S4.team == 1){
if(!MS0->S4.objeFlag && !MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 1 && !U->dead)
team1num++;
}
}else if(MS0->S4.team == 2){
if(!MS0->S4.objeFlag && !MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 2 && !U->dead)
team2num++;
int team2num = 0;
if(MS0->S4.team == 0){
if(!MS0->S4.unitTypeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 0 && !U->dead)
team0num++;
}else if(MS0->S4.team == 1){
if(!MS0->S4.unitTypeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 1 && !U->dead)
team1num++;
}
}else if(MS0->S4.team == 2){
if(!MS0->S4.unitTypeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 2 && !U->dead)
team2num++;
int team2num = 0;
if(MS0->S4.team == 0){
if(!MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 0 && !U->dead)
team0num++;
}else if(MS0->S4.team == 1){
if(!MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 1 && !U->dead)
team1num++;
}
}else if(MS0->S4.team == 2){
if(!MS0->S4.placeFlag){
- UTop = U;
+ U = UTop;
while (U) {
if(U->team == 2 && !U->dead)
team2num++;
-(void)addAppearanceStatus:(UNITCHIP)u x:(int)x y:(int)y{
int omgCnt = 0;
- UTop = U;
+ U = UTop;
while (U->next) {omgCnt++;
U = U->next;
}
U->next = calloc(1, sizeof(UNIT));
U = U->next;
U->next = NULL;
- if(omgCnt == 0) UTop = U;
+ if(omgCnt == 0) U = UTop;
U->number = registerNum;
U->chipNumber = -1;
U->chipNumberL = -1;