personajes.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. *
  3. * This file is part of Luces de 1984 (L1).
  4. * Copyright (C) <2017> <alkeon> [alkeon@autistici.org]
  5. * L1 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 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. 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. std::string nombre;
  40. void color_terminal(int color);
  41. void acierto(Personaje& agredido, Personaje& v);
  42. void fallo(Personaje& v);
  43. void disparo_acertado(Personaje& agredido);
  44. void pegar(Personaje& agredido);
  45. void disparas(Personaje& agredido, Personaje& v);
  46. void curar(Personaje& v);
  47. };
  48. #endif