Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
MATTHEW SLUG - Character.h

Character.h

Caricato da: Matthew
Scarica il programma completo

  1. /*
  2. This file is part of Matthew Slug.
  3.  
  4. Matthew Slug is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8.  
  9. Matthew Slug is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with Matthew Slug.  If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /*
  18.  * Character.h
  19.  *
  20.  *  Created on: 12-Oct-2009
  21.  *      Author: matthew
  22.  */
  23.  
  24. #ifndef CHARACTER_H_
  25. #define CHARACTER_H_
  26.  
  27. #include "Object.h"
  28.  
  29. class Character: public Object
  30. {
  31. private:
  32.         bool jumping;
  33.     bool fire_allowed,fire_automatic;
  34.     int life, lifeinit, fire;
  35.     bool vital;
  36.  
  37. public:
  38.  
  39.         Character(int);
  40.         Character();
  41.         virtual ~Character();
  42.         void move(vector<Object> &,  Character *);
  43.         bool getJumping();
  44.         void setJumping(bool);
  45.         bool CanFire();
  46.         void AllowFire(bool);
  47.         bool getAuto();
  48.         void setAuto(bool);
  49.         int getLife();
  50.         int getLifeInit();
  51.         void setLife(int);
  52.         void lessLife();
  53.         bool getVital();
  54.         void setVital(bool);
  55.         int getSpriteN();
  56.         int getFire();
  57.         void setFire(int);
  58. };
  59.  
  60. #endif /* CHARACTER_H_ */