CEntity.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
1.3.7