added keyword phandcount - player hand count

added keyword ohandcount - opponent hand count
This commit is contained in:
anthonycalosa@gmail.com
2013-01-16 12:08:46 +00:00
parent a26f872ff3
commit 5f90d1ee9f
+8
View File
@@ -344,6 +344,14 @@ private:
{ {
intValue = target->controller()->handsize; intValue = target->controller()->handsize;
} }
else if (s == "phandcount")
{
intValue = target->controller()->game->hand->nb_cards;
}
else if (s == "ohandcount")
{
intValue = target->controller()->opponent()->game->hand->nb_cards;
}
else else
{ {
intValue = atoi(s.c_str()); intValue = atoi(s.c_str());