Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "PowerupBigHand.h"
00026
00027 #include "Player.h"
00028 #include "libwiigui/gui.h"
00029
00030 extern Player *g_players;
00031
00032 PowerupId PowerupBigHand::powerupId;
00033 Powerup *PowerupBigHand::instance = new PowerupBigHand();
00034
00035 GuiImageData *PowerupBigHand::imageData =
00036 new GuiImageData(powerup_bighand_png);
00037
00038 string PowerupBigHand::helpText[2] =
00039 {"Big Hand", "Hey! Your hand's in the way!"};
00040
00041 void PowerupBigHand::StartEffect(u8 player)
00042 {
00043 g_players[player].gameData.powerupData.isBigHand = true;
00044 }
00045
00046
00047
00048
00049
00050
00051
00052 void PowerupBigHand::StopEffect(u8 player)
00053 {
00054 for (int i = 0; i < MAX_POWERUP_EFFECTS; ++i)
00055 {
00056 Powerup *powerup = g_players[player].gameData.powerupEffects[i];
00057 if (powerup && powerup->GetPowerupId() == powerupId)
00058 {
00059 return;
00060 }
00061 }
00062
00063 g_players[player].gameData.powerupData.isBigHand = false;
00064 }