Guest User

pokemon.h

a guest
Sep 18th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #ifndef POKEMON_H
  2. #define POKEMON_H
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. typedef struct No {
  7. struct No* prox;
  8. struct No* ant;
  9. int ID;
  10. bool reg;
  11. int candy;
  12. int cp;
  13. int hp;
  14. int evolve;
  15. } tPokemon;
  16.  
  17. typedef struct { tPokemon* inicio;
  18. int numElem;
  19. } tPokeBag;
  20.  
  21. void limpaBag(tPokeBag* p);
  22.  
  23. void initBag(tPokeBag* p);
  24.  
  25. tPokemon* alocaNo(int valor);
  26.  
  27. int tamBag(tPokeBag p);
  28.  
  29. void imprimeBag(tPokeBag p);
  30.  
  31.  
  32. bool insereFinalBag(tPokeBag* p, int dado);
  33.  
  34. bool insereInicioBag(tPokeBag* p, int dado);
  35.  
  36. bool insereOrdenadoBag(tPokeBag* p, int dado);
  37.  
  38. #endif /*POKEMON.H*/
Add Comment
Please, Sign In to add comment