C:/DevKitPro/!MDuel/source/wp_boot.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_BOOT_H
00021 #define _WP_BOOT_H
00022 
00023 #include "macros.h"
00024 #include "equipWeapon.h"
00025 
00026 //forward declaration
00027 class spriteObject;
00028 class Player;
00029 
00030 class wp_boot : public equipWeapon
00031 {
00032         public:
00033                 wp_boot(Player* p) : equipWeapon(p)
00034                 {
00035                         #ifdef __MDDEBUG
00036                         className = "wp_boot";
00037                         macros::debugMessage(className, "constructor");
00038                         #endif
00039                         canFireStanding = true;
00040                         canFireInAir = false;
00041                         canFireCrouching = false;
00042                         canMoveWhileFiring = true;
00043                         ammo = -1;
00044                         bHeldFire = false;
00045                         myType = Pickup::PT_BOOT;
00046                         equipAction();
00047                 }
00048                 virtual ~wp_boot();
00049                 
00050         protected:
00051                 virtual void weaponFireAction();
00052                 
00053                 virtual void equipAction();
00054                 virtual void unEquipAction();
00055 };
00056 
00057 #endif

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