00001 
#ifndef DEF_WEAPONS_H
00002 
#define DEF_WEAPONS_H 1
00003 
00004 
00005 
#define W_STRIKE         0x00000001
00006 
00007 
#define W_EXPLOSION      0x00000002
00008 
00009 
#define W_TOUCH          0x00000004
00010 
00011 
#define W_PRESSURE       0x00000008
00012 
00013 
#define W_HEAL           0x00000010
00014 
00015 
#define W_WATER          0x00000020
00016 
00017 
00018 
#define WS_NORMAL        0x00000001
00019 
#define WS_ELECTRIC      0x00000002
00020 
#define WS_FIRE          0x00000004
00021 
#define WS_WATER         0x00000008
00022 
#define WS_PRESSURE      0x00000010
00023 
#define WS_SPIKE         0x00000020
00024 
#define WS_HEAL          0x00000040
00025 
00026 
#define TSTRIKE          600
00027 
00033 class Weapon {
00034     
public:
00035         
Weapon(Sint16 dmg=-1, Uint16 weaptype=NOTHING, Uint16 subtype=WS_NORMAL);
00036         
virtual ~
Weapon();
00037         Uint16 getType() {
00038             
return wtype; 
00039         }
00040         Uint16 getSubType() {
00041             
return stype;
00042         }
00043         Sint16 getDamage() {
00044             
return damage;  
00045         }
00046     
private:
00050         Uint16 wtype;
00056         Uint16 stype;
00060         Sint16 damage;
00061 };
00062 
00063 
#endif