Advertisement
bernardolansing

structs necessárias

May 11th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. struct Jogador {
  2. int posx;
  3. int posy;
  4. int vidas;
  5. int municao;
  6. int facas;
  7. char direcao;
  8. double horadisparo;
  9. };
  10.  
  11. struct Inimigo {
  12. int posx;
  13. int posy;
  14. int vivo; // vivo (1) ou morto (0).
  15. char direcao;
  16. double horamorte;
  17. Rectangle hitbox;
  18. };
  19.  
  20. struct Bau {
  21. char conteudo; // tipo de item
  22. int posx;
  23. int posy;
  24. int estado; // aberto (1) ou fechado (0).
  25. int qnt; // quantidade de itens
  26. };
  27.  
  28. struct Porta {
  29. int posx;
  30. int posy;
  31. int liberada; // trancada (0) ou aberta (1).
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement