- Ja guarda l'habitació
This commit is contained in:
@@ -44,6 +44,7 @@ namespace actor
|
||||
act->anim_wait = act->anim_wait_count = 0;
|
||||
act->anim_frame=0;
|
||||
act->react_mask = act->react_push = 0;
|
||||
act->flags = FLAG_NONE;
|
||||
return act;
|
||||
}
|
||||
|
||||
@@ -61,6 +62,7 @@ namespace actor
|
||||
act->anim_wait = act->anim_wait_count = 0;
|
||||
act->anim_frame=0;
|
||||
act->react_mask = act->react_push = 0;
|
||||
act->flags = FLAG_NONE;
|
||||
return act;
|
||||
}
|
||||
|
||||
@@ -195,21 +197,21 @@ namespace actor
|
||||
|
||||
void saveToFile(FILE *f, actor_t *act)
|
||||
{
|
||||
fprintf(f, "actor{\n");
|
||||
fprintf(f, "\nactor{\n");
|
||||
fprintf(f, " name: %s\n", act->name);
|
||||
fprintf(f, " bmp: %s\n", act->bmp);
|
||||
fprintf(f, " bmp-rect: %i %i %i %i\n", act->bmp_rect.x, act->bmp_rect.y, act->bmp_rect.w, act->bmp_rect.h);
|
||||
fprintf(f, " bmp-offset: %i %i\n", act->bmp_offset.x, act->bmp_offset.y);
|
||||
fprintf(f, " pos: %i %i %i\n", act->pos.x, act->pos.y, act->pos.z);
|
||||
fprintf(f, " size: %i %i %i\n", act->size.x, act->size.y, act->size.z);
|
||||
fprintf(f, " orient: %s\n", numToOrient(act->orient));
|
||||
fprintf(f, " anim-cycle: %s\n", act->anim_cycle==0 ? "WALK" : "SEQ");
|
||||
fprintf(f, " anim-wait: %i\n", act->anim_wait);
|
||||
fprintf(f, " flags: %s\n", numToFlags(act->flags));
|
||||
fprintf(f, " react-mask: %s\n", numToOrient(act->react_mask));
|
||||
fprintf(f, " react-push: %s\n", numToOrient(act->react_push));
|
||||
fprintf(f, " movement: %s\n\n", numToMov(act->movement));
|
||||
fprintf(f, "}\n\n");
|
||||
if (act->orient!=0) fprintf(f, " orient: %s\n", numToOrient(act->orient));
|
||||
if (act->anim_cycle!=0) fprintf(f, " anim-cycle: %s\n", act->anim_cycle==0 ? "WALK" : "SEQ");
|
||||
if (act->anim_wait!=0) fprintf(f, " anim-wait: %i\n", act->anim_wait);
|
||||
if (act->flags!=0) fprintf(f, " flags: %s\n", numToFlags(act->flags));
|
||||
if (act->react_mask!=0) fprintf(f, " react-mask: %s\n", numToOrient(act->react_mask));
|
||||
if (act->react_push!=0) fprintf(f, " react-push: %s\n", numToOrient(act->react_push));
|
||||
if (act->movement!=0) fprintf(f, " movement: %s\n", numToMov(act->movement));
|
||||
fprintf(f, "}\n");
|
||||
}
|
||||
|
||||
const bool check_2d_collision(actor_t *obj1, actor_t *obj2)
|
||||
|
||||
Reference in New Issue
Block a user