Jeck - First doxygen commit, basic information on WFilter classes. Also added filter price adjustment for some of the newer basic abilities (the CANTLOSE varieties now cost more to filter).

This commit is contained in:
wagic.jeck
2011-01-30 11:14:36 +00:00
parent 329b0cf929
commit e0f7bf26d8
3 changed files with 1837 additions and 6 deletions
+13 -2
View File
@@ -435,11 +435,19 @@ string WCFilterAbility::getCode()
return buf;
}
;
float WCFilterAbility::filterFee()
{
switch (ability)
{
case Constants::CANTLOSE:
return 2.0f;
case Constants::CANTLIFELOSE:
case Constants::CANTMILLLOSE:
return 1.5f;
case Constants::SHROUD:
case Constants::CONTROLLERSHROUD:
case Constants::PLAYERSHROUD:
case Constants::DEATHTOUCH:
case Constants::UNBLOCKABLE:
case Constants::WITHER:
@@ -491,8 +499,11 @@ float WCFilterAND::filterFee()
}
float WCFilterOR::filterFee()
{
if (lhs->filterFee() > rhs->filterFee()) return lhs->filterFee();
return rhs->filterFee();
float lFee = lhs->filterFee();
float rFee = rhs->filterFee();
if (lFee > rFee)
return lFee;
return rFee;
}
string WCFilterNOT::getCode()
{