Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

bulletweapon.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           bulletweapon.h  -  description
00003                              -------------------
00004     begin                : Fri Sep 14 2001
00005     copyright            : (C) 2001 by T Kontkanen
00006     email                : tkontkanen@mail.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef BULLETWEAPON_H
00019 #define BULLETWEAPON_H
00020 
00021 
00022 #include "renderer.h"
00023 #include "ground.h"
00024 #include "game.h"
00025 #include "allincludes.h"
00026 #include "gamedefs.h"
00027 #include "vector.h"
00028 
00033 class BulletWeapon {
00034 public: 
00035     BulletWeapon( Game *pgame );
00036     ~BulletWeapon();
00037 
00039     void weaponThink();
00040     
00042     void setDamage( float hitpoints ) { damage=hitpoints; }
00044     void setFireRate( float bulletspersec ) { firerate=bulletspersec; }
00046     void setSightRange( float range ) { maxrange=range; }
00048     void setMinRange( float range ) { minrange=range; }
00049     
00050 private:
00051     Game *wgame; // parent game
00052     Renderer *wrenderer; //parent renderer
00053     
00054     // params
00055     float damage, firerate, maxrange, minrange;
00056 };
00057 
00058 #endif

Generated at Fri Oct 5 20:23:52 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001