* Add the Trash facility and use it for CardViews.
* Fix a graphical bug with card shadows.
* Fix a graphical bug with limitors.
* Enhance the graphical appearance of cards going to graveyard.
This commit is contained in:
jean.chalard
2009-09-05 11:44:34 +00:00
parent 44738399dc
commit b6781e82f1
8 changed files with 78 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
#include "../include/config.h"
#include "../include/GameApp.h"
#include "../include/Trash.h"
#include "../include/GuiHand.h"
const float GuiHand::ClosedRowX = 459;
@@ -164,7 +165,7 @@ int GuiHandSelf::receiveEventMinus(WEvent* e)
cs->Remove(cv);
Repos();
cards.erase(it);
delete cv;
trash(cv);
return 1;
}
return 1;
@@ -198,7 +199,7 @@ int GuiHandOpponent::receiveEventMinus(WEvent* e)
{
CardView* cv = *it;
cards.erase(it);
delete cv;
trash(cv);
return 1;
}
return 0;