00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _JAWBONE_H_
00020 #define _JAWBONE_H_
00021
00022 #include "contain.h"
00023
00024 class Jawbone_object : public Container_game_object {
00025 friend class Jawbone_gump;
00026
00027 public:
00028 Jawbone_object(int shapenum, int framenum, unsigned int tilex,
00029 unsigned int tiley, unsigned int lft,
00030 char res = 0)
00031 : Container_game_object(shapenum, framenum, tilex, tiley, lft, res)
00032 { }
00033 Jawbone_object() : Container_game_object() { }
00034
00035
00036
00037
00038 virtual bool add(Game_object *obj, bool dont_check = false,
00039 bool combine = false);
00040
00041 virtual void remove(Game_object *obj);
00042
00043
00044 virtual Game_object *attacked(Actor *attacker, int weapon_shape = 0,
00045 int ammo_shape = 0) { return this; }
00046
00047 private:
00048
00049 Game_object* teeth[19];
00050 int toothcount;
00051 void find_teeth();
00052
00053 void update_frame();
00054
00055 };
00056
00057 #endif