CTrap.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 Trap :
public GameObject {
00022
00023
public:
00024
00025 char name[50];
00026 bool active;
00027 unsigned char type,
damage;
00028 unsigned char thinktime,
waitTime[2];
00029
00030 signed char currentAction;
00031
00032 float x,
y,
dx,
dy,
speed;
00033 int width,
height;
00034 int startX,
startY,
endX,
endY;
00035
00036 Sprite *
sprite;
00037
00038
Trap();
00039
void setName(
char *name);
00040
void setTrapType(
int trapType);
00041
void setSprite(
Sprite *sprite);
00042
void setSpeed(
int speed);
00043
void setPosition(
int x,
int y);
00044
void setDestinations(
int startX,
int startY,
int endX,
int endY);
00045
void setWaitTimes(
int wait1,
int wait2);
00046
void setDamage(
int damage);
00047
bool performSpikeAction();
00048
bool performSwingAction();
00049
bool performBarrierAction();
00050
bool performFlameAction();
00051
bool think();
00052
00053 };
Generated on Thu Dec 2 20:26:02 2004 for Blob Wars : Metal Blob Solid by
1.3.7