C:/DevKitPro/!MDuel/source/wp_shield.h

Go to the documentation of this file.
00001 /*
00002  * Marshmallow Duel DS v2
00003  * Copyright © 2007 Sam Pospischil http://pospi.spadgos.com
00004  * 
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00018  */
00019 
00020 #ifndef _WP_SHIELD_H
00021 #define _WP_SHIELD_H
00022 
00023 #include "macros.h"
00024 #include "equipWeapon.h"
00025 
00026 //forward declaration
00027 class spriteObject;
00028 class Player;
00029 
00030 class wp_shield : public equipWeapon
00031 {
00032         public:
00033                 wp_shield(Player* p) : equipWeapon(p)
00034                 {
00035                         #ifdef __MDDEBUG
00036                         className = "wp_shield";
00037                         macros::debugMessage(className, "constructor");
00038                         #endif
00039                         canFireStanding = false;
00040                         canFireInAir = false;
00041                         canFireCrouching = false;
00042                         ammo = -1;
00043                         bHeldFire = false;
00044                         myType = Pickup::PT_SHIELD;
00045                         equipAction();
00046                 }
00047                 virtual ~wp_shield();
00048                 
00049                 virtual void weaponTick();
00050         
00051         protected:
00052                 virtual void equipAction();
00053                 virtual void unEquipAction();
00054 
00055                 virtual void weaponFireAction() {}      //bleh
00056 };
00057 
00058 #endif

Generated on Tue Mar 13 23:27:53 2007 for MDuel DS by  doxygen 1.5.1-p1