00001 /************************************************************************* 00002 character.h 00003 Project Piedmont game 00004 ------------------------- 00005 00006 Date Created: 10/13/00 Last Modified: 05/07/08 00007 Programmer: David Foster 00008 Copyright: (C) 2000 David Foster (see file COPYING) 00009 E-mail: dfoster@computer.org 00010 00011 Description: main character class from which enemies character 00012 classes will be derived. 00013 00014 This program is free software; you can redistribute it and/or modify 00015 it under the terms of the GNU General Public License as published by 00016 the Free Software Foundation; either version 2 of the License, or 00017 (at your option) any later version. 00018 00019 This program is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 GNU General Public License for more details. 00023 00024 You should have received a copy of the GNU General Public License 00025 along with this program; if not, write to the Free Software 00026 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 00028 ************************************************************************/ 00029 00030 #ifndef CHARACTER_H 00031 #define CHARACTER_H 00032 #define CHARACTER_DEBUG 0 //1 allows debug statements to be output 00033 00034 #include <stdio.h> 00035 #include <iostream> 00036 #include <stdlib.h> 00037 #include <string> 00038 #include <stddef.h> 00039 #include <unistd.h> 00040 #include <SDL/SDL.h> 00041 #include "screen.h" 00042 #include "tiles.h" 00043 #include "fgentitylist.h" 00044 using std::string; 00045 using namespace std; 00046 00047 class Character : public FGEntity{ 00048 private: 00049 int direction; 00050 int ranged, hitpoints, damage; 00051 int num_frames; 00052 public: 00053 Character(); 00054 ~Character(); 00055 void set_paul_info(paul_info *p); 00056 void set_tileinfo(int first_prop, int second_prop, int third_prop); 00057 virtual void update(); 00058 }; 00059 00060 #endif 00061 00062 00063