game mode info
This commit is contained in:
@@ -119077,8 +119077,7 @@ toughness=4
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
name=Vesuva
|
name=Vesuva
|
||||||
auto=tap(noevent)
|
auto=may copy notatarget(land) and!( tap(noevent) )!
|
||||||
auto=may copy notatarget(land)
|
|
||||||
text=You may have Vesuva enter the battlefield tapped as a copy of any land on the battlefield.
|
text=You may have Vesuva enter the battlefield tapped as a copy of any land on the battlefield.
|
||||||
type=Land
|
type=Land
|
||||||
[/card]
|
[/card]
|
||||||
|
|||||||
@@ -1196,24 +1196,59 @@ void GameStateDuel::Render()
|
|||||||
case DUEL_STATE_BACK_TO_MAIN_MENU:
|
case DUEL_STATE_BACK_TO_MAIN_MENU:
|
||||||
if (game)
|
if (game)
|
||||||
{
|
{
|
||||||
|
string gtype = "";
|
||||||
|
if(game->gameType() == GAME_TYPE_CLASSIC)
|
||||||
|
gtype = "Classic";
|
||||||
|
else if(game->gameType() == GAME_TYPE_MOMIR)
|
||||||
|
gtype = "Momir";
|
||||||
|
else if(game->gameType() == GAME_TYPE_RANDOM1 || game->gameType() == GAME_TYPE_RANDOM2)
|
||||||
|
gtype = "Random";
|
||||||
|
else if(game->gameType() == GAME_TYPE_STORY)
|
||||||
|
gtype = "Story";
|
||||||
|
else if(game->gameType() == GAME_TYPE_DEMO)
|
||||||
|
gtype = "Demo";
|
||||||
|
else if(game->gameType() == GAME_TYPE_STONEHEWER)
|
||||||
|
gtype = "Stone Hewer";
|
||||||
|
else if(game->gameType() == GAME_TYPE_HERMIT)
|
||||||
|
gtype = "Hermit Druid";
|
||||||
|
else
|
||||||
|
gtype = "Blitzkrieg";
|
||||||
r->FillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, ARGB(100,0,0,0));
|
r->FillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, ARGB(100,0,0,0));
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
sprintf(buffer, _("Turn:%i").c_str(), game->turn);
|
sprintf(buffer, _("Turn:%i").c_str(), game->turn);
|
||||||
mFont->SetColor(ARGB(255,255,255,255));
|
mFont->SetColor(ARGB(255,255,255,255));
|
||||||
mFont->DrawString(buffer, SCREEN_WIDTH / 2, 0, JGETEXT_CENTER);
|
mFont->DrawString(buffer, SCREEN_WIDTH / 2, 0, JGETEXT_CENTER);
|
||||||
|
mFont->DrawString(gtype, SCREEN_WIDTH / 2, SCREEN_HEIGHT - 15, JGETEXT_CENTER);
|
||||||
}
|
}
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
menu->Render();
|
menu->Render();
|
||||||
|
|
||||||
// display the player deck names in their respective corners
|
// display the player deck names in their respective corners
|
||||||
|
string p0playmode = "";
|
||||||
|
if(game->players[0]->playMode == Player::MODE_TEST_SUITE)
|
||||||
|
p0playmode = "AI Testsuite";
|
||||||
|
else if(game->players[0]->playMode == Player::MODE_HUMAN)
|
||||||
|
p0playmode = "Human";
|
||||||
|
else
|
||||||
|
p0playmode = "AI";
|
||||||
string playerDeckName = game->players[0]->deckName;
|
string playerDeckName = game->players[0]->deckName;
|
||||||
float playerDeckNamePixelLength = mFont->GetStringWidth(playerDeckName.c_str());
|
float playerDeckNamePixelLength = mFont->GetStringWidth(playerDeckName.c_str());
|
||||||
|
float playerModePixelLength = mFont->GetStringWidth(p0playmode.c_str());
|
||||||
mFont->DrawString( playerDeckName, SCREEN_WIDTH_F - playerDeckNamePixelLength, SCREEN_HEIGHT_F - 50);
|
mFont->DrawString( playerDeckName, SCREEN_WIDTH_F - playerDeckNamePixelLength, SCREEN_HEIGHT_F - 50);
|
||||||
|
mFont->DrawString( p0playmode, SCREEN_WIDTH_F - playerModePixelLength, SCREEN_HEIGHT_F - 60);
|
||||||
if(game->players.size()>1)
|
if(game->players.size()>1)
|
||||||
{
|
{
|
||||||
|
string p1playmode = "";
|
||||||
|
if(game->players[1]->playMode == Player::MODE_TEST_SUITE)
|
||||||
|
p1playmode = "AI Testsuite";
|
||||||
|
else if(game->players[1]->playMode == Player::MODE_HUMAN)
|
||||||
|
p1playmode = "Human";
|
||||||
|
else
|
||||||
|
p1playmode = "AI";
|
||||||
string opponentDeckName = game->players[1]->deckName;
|
string opponentDeckName = game->players[1]->deckName;
|
||||||
mFont->DrawString( opponentDeckName, 0, 50);
|
mFont->DrawString( opponentDeckName, 0, 40);
|
||||||
|
mFont->DrawString( p1playmode, 0, 50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ GuiAvatars::GuiAvatars(DuelLayers* duelLayers) :
|
|||||||
{
|
{
|
||||||
Add(self = NEW GuiAvatar(SCREEN_WIDTH, SCREEN_HEIGHT, false, mpDuelLayers->getRenderedPlayer(), GuiAvatar::BOTTOM_RIGHT, this));
|
Add(self = NEW GuiAvatar(SCREEN_WIDTH, SCREEN_HEIGHT, false, mpDuelLayers->getRenderedPlayer(), GuiAvatar::BOTTOM_RIGHT, this));
|
||||||
self->zoom = 0.9f;
|
self->zoom = 0.9f;
|
||||||
Add(selfGraveyard = NEW GuiGraveyard(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 1, false, mpDuelLayers->getRenderedPlayer(), this));
|
Add(selfGraveyard = NEW GuiGraveyard(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 7, false, mpDuelLayers->getRenderedPlayer(), this));
|
||||||
Add(selfLibrary = NEW GuiLibrary(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 5 + GuiGameZone::Height + 5, false, mpDuelLayers->getRenderedPlayer(), this));
|
Add(selfLibrary = NEW GuiLibrary(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 10 + GuiGameZone::Height + 5, false, mpDuelLayers->getRenderedPlayer(), this));
|
||||||
//myexile
|
//myexile
|
||||||
Add(selfExile = NEW GuiExile(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 30, false, mpDuelLayers->getRenderedPlayer(), this));
|
Add(selfExile = NEW GuiExile(SCREEN_WIDTH - GuiAvatar::Width - GuiGameZone::Width / 2 - 11, SCREEN_HEIGHT - GuiAvatar::Height - 34, false, mpDuelLayers->getRenderedPlayer(), this));
|
||||||
|
|
||||||
Add(opponent = NEW GuiAvatar(0, 0, false, mpDuelLayers->getRenderedPlayerOpponent(), GuiAvatar::TOP_LEFT, this));
|
Add(opponent = NEW GuiAvatar(0, 0, false, mpDuelLayers->getRenderedPlayerOpponent(), GuiAvatar::TOP_LEFT, this));
|
||||||
opponent->zoom = 0.9f;
|
opponent->zoom = 0.9f;
|
||||||
|
|||||||
@@ -3391,17 +3391,10 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
/*vector<string>FlipStats = split(splitFlipStat[1],'%');*/
|
/*vector<string>FlipStats = split(splitFlipStat[1],'%');*/
|
||||||
flipStats = splitFlipStat[1];
|
flipStats = splitFlipStat[1];
|
||||||
}
|
}
|
||||||
if(card->getdoubleFaced() == "kamiflip")
|
bool transmode = card->getdoubleFaced() == "kamiflip"?true:false;
|
||||||
{//old flip cards kamigawa
|
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,transmode);
|
||||||
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,true);
|
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
else//regular transform
|
|
||||||
{
|
|
||||||
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//Change Power/Toughness
|
//Change Power/Toughness
|
||||||
WParsedPT * wppt = NEW WParsedPT(s, spell, card);
|
WParsedPT * wppt = NEW WParsedPT(s, spell, card);
|
||||||
|
|||||||
Reference in New Issue
Block a user