/*
This file is part of Matthew Slug.
Matthew Slug is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Matthew Slug is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Matthew Slug. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Character.h
*
* Created on: 12-Oct-2009
* Author: matthew
*/
#ifndef CHARACTER_H_
#define CHARACTER_H_
#include "Object.h"
class Character: public Object
{
private:
bool jumping;
bool fire_allowed,fire_automatic;
int life, lifeinit, fire;
bool vital;
public:
Character(int);
Character();
virtual ~Character();
void move(vector<Object> &, Character *);
bool getJumping();
void setJumping(bool);
bool CanFire();
void AllowFire(bool);
bool getAuto();
void setAuto(bool);
int getLife();
int getLifeInit();
void setLife(int);
void lessLife();
bool getVital();
void setVital(bool);
int getSpriteN();
int getFire();
void setFire(int);
};
#endif /* CHARACTER_H_ */