/ Published in: C
NerdsVsZombies entrega 1 . h
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
typedef struct regDades { int x; int y; struct T_SPRITE *apuntador; }; typedef struct regDadesZombie { struct regDades dades; int graficZombieActiu; int vidaZombie; }; typedef struct regDadesNerd { struct regDades dades; struct regDades dispar; int graficNerdActiu; int disparActiu; int zombieDavant; }; typedef struct regInfo { struct regDadesZombie tZombie[10]; struct regDadesNerd tNerd[5]; struct T_SPRITE *background; int ZombiesMorts; int JocFinalitzat; }; int NerdsVsZombies_Init(struct regInfo *reg); int NerdsVsZombies_Tick(struct regInfo *reg); void NerdsVsZombies_Draw(struct regInfo *reg); void CreacioZombie(struct regInfo *reg); void AvancarZombie(struct regInfo *reg); void FinalitzarJoc(struct regInfo *reg); int ComprovarObjectiu(struct regInfo *reg); int ComprovarZombieEsquerra(struct regInfo *reg); int ComprovarZombieMort(struct regInfo *reg, int index); void AugmentarZombiesMorts(struct regInfo *reg); void EsborrarZombie(struct regInfo *reg, int index); void AvancarDispars(struct regInfo *reg); void ComprovarZombieDavant(struct regInfo *reg, int indexNerd, int indexZombie); void ActivarDispar(struct regInfo *reg, int indexNerd); int ComprovarXocDisparZombie(struct regInfo *reg, int indexNerd,int indexZombie); void DisminuirVidaZombie(struct regInfo *reg, int indexZombie); void EsborrarDispar(struct regInfo *reg, int indexNerd); int ComprovarXocNerdZombie(struct regInfo *reg, int indexNerd,int indexZombie); void EliminarNerd(struct regInfo *reg, int indexNerd); int ComprovarNerdsMaxims(struct regInfo *reg, int maximNerds); int UltimLlocLliureNerd(struct regInfo *reg); void CrearNerd(struct regInfo *reg, int indexNerd); int UltimNerdCreat(struct regInfo *reg, int maximNerds); void NerdsVsZombies_Release(); enum{ TICK_RESULT_EXIT, TICK_RESULT_OK };