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 "PowerupLinePiece.h"
00026
00027 #include "Player.h"
00028 #include "libwiigui/gui.h"
00029
00030 extern Player *g_players;
00031
00032 PowerupId PowerupLinePiece::powerupId;
00033 Powerup *PowerupLinePiece::instance = new PowerupLinePiece();
00034
00035 GuiImageData *PowerupLinePiece::imageData =
00036 new GuiImageData(powerup_linepiece_png);
00037
00038 string PowerupLinePiece::helpText[2] =
00039 {"Line Piece", "The target player's next piece will be a line piece."};
00040
00041 void PowerupLinePiece::StartEffect(u8 plyrIdx)
00042 {
00043 g_players[plyrIdx].nextPiece.InitPiece(TETRISPIECE_ID_I);
00044 }
00045
00046 void PowerupLinePiece::StopEffect(u8 plyrIdx)
00047 {
00048
00049 }