Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CEntity.h

Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004 Parallel Realities 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License 00006 as published by the Free Software Foundation; either version 2 00007 of the License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 */ 00020 00021 class Entity : public GameObject { 00022 00023 public: 00024 00025 char name[50]; 00026 00027 float x, y, dx, dy; 00028 int tx, ty, width, height; 00029 00030 signed char oxygen, fuel; 00031 00032 unsigned char immune; 00033 unsigned char environment, damage; 00034 unsigned char face; 00035 00036 signed int thinktime, baseThink, health, reload; 00037 00038 unsigned int id, value; 00039 long flags; 00040 unsigned char currentFrame, currentTime; 00041 00042 int deathSound; 00043 00044 Sprite *sprite[3]; 00045 00046 bool falling; 00047 00048 Weapon *currentWeapon; 00049 00050 int dead; 00051 00052 Entity *owner; 00053 00054 Entity(); 00055 void setName(char *name); 00056 void setSprites(Sprite *sprite1, Sprite *sprite2, Sprite *sprite3); 00057 void animate(); 00058 SDL_Surface *getFaceImage(); 00059 void place(int x, int y); 00060 void setVelocity(float dx, float dy); 00061 void move(); 00062 void setRandomVelocity(); 00063 void applyGravity(); 00064 void checkEnvironment(); 00065 void think(); 00066 00067 };

Generated on Thu Dec 2 20:26:02 2004 for Blob Wars : Metal Blob Solid by doxygen 1.3.7