personajes.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. *
  3. * This file is part of Luces de 1984 SDL version (L1-sdl).
  4. * Copyright (C) <2017> <alkeon> [alkeon@autistici.org]
  5. * L1-sdl is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * L1-sdl is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with l1-sdl. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. */
  19. #ifndef PERSONAJE
  20. #define PERSONAJE
  21. #include <string>
  22. class Personaje{
  23. public:
  24. Personaje(int primer_argumento,int segundo_argumento,int tercer_argumento,int cuarto_argumento,int quinto_argumento);
  25. ~Personaje();
  26. std::string funcion_guardada;
  27. int vida;
  28. int isBot;
  29. int ataque;
  30. int botiquin;
  31. int ganzua;
  32. int balas;
  33. int balas_dano;
  34. int identificacion;
  35. int psicosis;
  36. int soledad;
  37. int esperpento;
  38. int hola_dave;
  39. int bug;
  40. int pistola;
  41. std::string nombre;
  42. void color_terminal(int color);
  43. void acierto(Personaje& agredido, Personaje& v);
  44. void fallo(Personaje& v);
  45. void disparo_acertado(Personaje& agredido);
  46. void pegar(Personaje& agredido);
  47. void disparas(Personaje& agredido, Personaje& v);
  48. void curar(Personaje& v);
  49. };
  50. #endif