aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-02-26 13:37:08 -0500
committerNathan Vance <nathav63@gmail.com>2015-02-26 13:37:08 -0500
commit3bc64a91ce3478fdffcacf2ad5585c3922a4b187 (patch)
treeea1de35ce603809293c28982531332b9949776aa /data.c
parentTrade ui implemented (diff)
download7w-3bc64a91ce3478fdffcacf2ad5585c3922a4b187.tar.gz
7w-3bc64a91ce3478fdffcacf2ad5585c3922a4b187.tar.bz2
7w-3bc64a91ce3478fdffcacf2ad5585c3922a4b187.zip
Started adding support for special cards
Diffstat (limited to 'data.c')
-rw-r--r--data.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/data.c b/data.c
index 8959ab2..38baa50 100644
--- a/data.c
+++ b/data.c
@@ -14,7 +14,7 @@ int* trade_buffer();
#define DATAGOLD 0
static int decks[3][49];
-static int player[7][4][7]; //3 eras and extra stuff (wonder, wonder side, wonder stages completed, gold, military wins, defeats)
+static int player[7][4][7]; //3 eras and extra stuff (wonder, wonder side, wonder stages completed, gold, military wins, defeats, vps(partial))
static int buffer[7][2];
static int hands[7][7];
static int numplayers;
@@ -152,6 +152,11 @@ int data_getwonderstages(int p)
return player[p][3][2];
}
+int data_getdefeats(int p)
+{
+ return player[p][3][5];
+}
+
int data_getgold(int p)
{
return player[p][3][3] + turngoldbuffer[p];
@@ -163,6 +168,11 @@ void data_addgold(int amnt, int p)
turngoldbuffer[p] += amnt;
}
+void data_addvps(int amnt, int p)
+{
+ player[p][3][6] += amnt;
+}
+
int data_numplayers()
{
return numplayers;
bgstack15