This file is indexed.

/usr/share/doc/libcgicc-doc/html/namespaceCardGameTools.html is in libcgicc-doc 3.2.9-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
   "http://www.w3.org/TR/REC-html40/loose.dtd">

<html lang="en" dir="LTR">

<head>
  <!-- $Id: header.html,v 1.5 2004/06/12 01:58:25 sbooth Exp $ -->
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>cgicc: CardGameTools Namespace Reference</title>
  <link rev="made" href="mailto:bug-cgicc@gnu.org" />
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
  <link href="cgicc-doc.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">CardGameTools Namespace Reference</div>  </div>
</div>
<div class="contents">

<p>Contain all the functions to the coding game.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a72303f6bb4da46088a162e104baea48a">convertStructToString</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *pPlayer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a data in a single line from the data of the player.  <a href="#a72303f6bb4da46088a162e104baea48a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a991f73f078a31a0a16245db5cb8e57bd">convertStringToStuct</a> (string pPlayer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a datasgame struct from a single line.  <a href="#a991f73f078a31a0a16245db5cb8e57bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#ad50d7fa03c5023b445b33705c09566b8">getNUMCookie</a> (std::vector&lt; <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> &gt; pCookieVector)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the cookie of the game from the list of the cookies.  <a href="#ad50d7fa03c5023b445b33705c09566b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#afd019ba73719b7ce9fa3d61bffc3ecfc">getValue</a> (string pName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all personnal information from the cookie's Id.  <a href="#afd019ba73719b7ce9fa3d61bffc3ecfc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a841d2554cf28f1b108a141e5d6819ba3">getFileGame</a> (string pName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all game information from the name of the player.  <a href="#a841d2554cf28f1b108a141e5d6819ba3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a190b838fbbb6305e7a750fe542912b20">getGame</a> (string pName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the data to the datasgame struct.  <a href="#a190b838fbbb6305e7a750fe542912b20"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a25f615ce8d32e72637560aabd8833227">writeValue</a> (string pName, string pValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data in the cookie file.  <a href="#a25f615ce8d32e72637560aabd8833227"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a392443dca7f6fcb831dcd061ca94a2f3">writeFileGame</a> (string pName, string pValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data in the game file.  <a href="#a392443dca7f6fcb831dcd061ca94a2f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a5cb76cfa8e26278ce819399543a0673e">writeGame</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *pPlayer, <a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write datasgame struct in the game file.  <a href="#a5cb76cfa8e26278ce819399543a0673e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a34e3bca71a5ee6d2f88005e6abc518ab">generateUnicCookie</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">generate an unique id  <a href="#a34e3bca71a5ee6d2f88005e6abc518ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a467cbafd40025916ee44fdbe4a0bc4ce">countGame</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the game file and count the number of games.  <a href="#a467cbafd40025916ee44fdbe4a0bc4ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vector&lt; string &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a82aa8048b99856640bcca228ebd7c69b">loadAndMixCards</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a mixed cards list.  <a href="#a82aa8048b99856640bcca228ebd7c69b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#afec447440a32183dfbd4aa19cc035593">calculateCard</a> (string pCard)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value of the card.  <a href="#afec447440a32183dfbd4aa19cc035593"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a966d65ef179f72f71a5e38b5b3795fcf">createGame</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a game from the data of the player.  <a href="#a966d65ef179f72f71a5e38b5b3795fcf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a933ea4962f0980aae5ca4ce1e82653b6">drawCards</a> (vector&lt; string &gt; *cardList)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the cards list.  <a href="#a933ea4962f0980aae5ca4ce1e82653b6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a410190d4b60fd5e6d777107d4fbd0f90">writeWinner</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, <a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the winner informations.  <a href="#a410190d4b60fd5e6d777107d4fbd0f90"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a7f7bc93d35d586d91f0936d334d55e63">drawInfos</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw player informations.  <a href="#a7f7bc93d35d586d91f0936d334d55e63"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a2123161a35d94144aeb726a0b44a5113">drawPlayers</a> (<a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw players game informations.  <a href="#a2123161a35d94144aeb726a0b44a5113"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#abda97ad8b16c553d12994a3d005c25c1">drawCardInPlay</a> (<a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the cards in the table.  <a href="#abda97ad8b16c553d12994a3d005c25c1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#ad4133b93a93ce4cacc3a5b7ca0efc126">drawPlayerCards</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the cards of the player.  <a href="#ad4133b93a93ce4cacc3a5b7ca0efc126"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a90577d98ea437314196fef1ccd40b1ea">playACard</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, <a class="el" href="structdatasgame.html">datasgame</a> *readedGame, string *card)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The algorithm when a card is played.  <a href="#a90577d98ea437314196fef1ccd40b1ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#a49f4ad5adce087a27e4b00c29bdd71b4">turnPlayers</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, <a class="el" href="structdatasgame.html">datasgame</a> *readedGame)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the hand in the game.  <a href="#a49f4ad5adce087a27e4b00c29bdd71b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#ac5dd6196d07df0a2034eadd3fc1cae6b">testCard</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, <a class="el" href="structdatasgame.html">datasgame</a> *readedGame, string *card)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if the card is playable.  <a href="#ac5dd6196d07df0a2034eadd3fc1cae6b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#abac281c9baaa2adcea9df78b012051fa">IAPlay</a> (<a class="el" href="structdatasgame.html">datasgame</a> *readedGame, int pId)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">AI algorithme for one AI player.  <a href="#abac281c9baaa2adcea9df78b012051fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#ac92c8b5687cc611e0d0edfb59e6fc783">gameRules</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, string *action, string *card)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The rules Algorithm.  <a href="#ac92c8b5687cc611e0d0edfb59e6fc783"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Contain all the functions to the coding game. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="afec447440a32183dfbd4aa19cc035593"></a><!-- doxytag: member="CardGameTools::calculateCard" ref="afec447440a32183dfbd4aa19cc035593" args="(string pCard)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CardGameTools::calculateCard </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pCard</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the value of the card. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pCard</td><td>: The card to evaluate </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the card </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00784">784</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a991f73f078a31a0a16245db5cb8e57bd"></a><!-- doxytag: member="CardGameTools::convertStringToStuct" ref="a991f73f078a31a0a16245db5cb8e57bd" args="(string pPlayer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdatasplayer.html">datasplayer</a>* CardGameTools::convertStringToStuct </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pPlayer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Generate a datasgame struct from a single line. </p>
<p>The separator in the string is the double of the character ":" . The real code is "::". The double code "||" define the end of the datas. The format is : playerId::card1::card2::...::cardn|| </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pPlayer</td><td>The data to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> The data of the players </dd>
<dd>
<a class="el" href="namespaceCardGameTools.html#a72303f6bb4da46088a162e104baea48a" title="Generate a data in a single line from the data of the player.">convertStructToString</a> Do the same in the other direction </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the datasplayer struct conversion of the players </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00168">168</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, and <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a72303f6bb4da46088a162e104baea48a"></a><!-- doxytag: member="CardGameTools::convertStructToString" ref="a72303f6bb4da46088a162e104baea48a" args="(datasplayer *pPlayer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CardGameTools::convertStructToString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>pPlayer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Generate a data in a single line from the data of the player. </p>
<p>The separator in the string is the double of the character ":" . The real code is "::". The double code "||" define the end of the datas. The format is : playerId::card1::card2::...::cardn|| </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">*pPlayer</td><td>A pointer on the data to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> The data of the players </dd>
<dd>
<a class="el" href="namespaceCardGameTools.html#a991f73f078a31a0a16245db5cb8e57bd" title="Generate a datasgame struct from a single line.">convertStringToStuct</a> Do the same in the other sense </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the string conversion of the players </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00134">134</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, and <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a467cbafd40025916ee44fdbe4a0bc4ce"></a><!-- doxytag: member="CardGameTools::countGame" ref="a467cbafd40025916ee44fdbe4a0bc4ce" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CardGameTools::countGame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read the game file and count the number of games. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of games </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00676">676</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a966d65ef179f72f71a5e38b5b3795fcf"></a><!-- doxytag: member="CardGameTools::createGame" ref="a966d65ef179f72f71a5e38b5b3795fcf" args="(datasplayer *vPlayer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdatasgame.html">datasgame</a>* CardGameTools::createGame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a game from the data of the player. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd>
<dd>
<a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the player </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the data game struct of the new created game </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00851">851</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00087">datasplayer::actualCard</a>, <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, <a class="el" href="cardgame_8cpp_source.html#l00708">loadAndMixCards()</a>, <a class="el" href="cardgame_8cpp_source.html#l00112">datasgame::piocheCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>, <a class="el" href="cardgame_8cpp_source.html#l00082">datasplayer::points</a>, and <a class="el" href="cardgame_8cpp_source.html#l00598">writeGame()</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="abda97ad8b16c553d12994a3d005c25c1"></a><!-- doxytag: member="CardGameTools::drawCardInPlay" ref="abda97ad8b16c553d12994a3d005c25c1" args="(datasgame *pGame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::drawCardInPlay </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>pGame</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the cards in the table. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pGame</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01024">1024</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>.</p>

</div>
</div>
<a class="anchor" id="a933ea4962f0980aae5ca4ce1e82653b6"></a><!-- doxytag: member="CardGameTools::drawCards" ref="a933ea4962f0980aae5ca4ce1e82653b6" args="(vector&lt; string &gt; *cardList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::drawCards </td>
          <td>(</td>
          <td class="paramtype">vector&lt; string &gt; *&#160;</td>
          <td class="paramname"><em>cardList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the cards list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cardList</td><td>: The cards to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00910">910</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a7f7bc93d35d586d91f0936d334d55e63"></a><!-- doxytag: member="CardGameTools::drawInfos" ref="a7f7bc93d35d586d91f0936d334d55e63" args="(datasplayer *vPlayer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::drawInfos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw player informations. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00971">971</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="ad4133b93a93ce4cacc3a5b7ca0efc126"></a><!-- doxytag: member="CardGameTools::drawPlayerCards" ref="ad4133b93a93ce4cacc3a5b7ca0efc126" args="(datasplayer *vPlayer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::drawPlayerCards </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the cards of the player. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01044">1044</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, and <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a2123161a35d94144aeb726a0b44a5113"></a><!-- doxytag: member="CardGameTools::drawPlayers" ref="a2123161a35d94144aeb726a0b44a5113" args="(datasgame *pGame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::drawPlayers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>pGame</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw players game informations. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pGame</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00991">991</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="ac92c8b5687cc611e0d0edfb59e6fc783"></a><!-- doxytag: member="CardGameTools::gameRules" ref="ac92c8b5687cc611e0d0edfb59e6fc783" args="(datasplayer *vPlayer, string *action, string *card)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::gameRules </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&#160;</td>
          <td class="paramname"><em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&#160;</td>
          <td class="paramname"><em>card</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The rules Algorithm. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
    <tr><td class="paramname">action</td><td>: Action of the human player </td></tr>
    <tr><td class="paramname">card</td><td>: the card wanted </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01275">1275</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00784">calculateCard()</a>, <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, <a class="el" href="cardgame_8cpp_source.html#l00676">countGame()</a>, <a class="el" href="cardgame_8cpp_source.html#l00851">createGame()</a>, <a class="el" href="cardgame_8cpp_source.html#l00910">drawCards()</a>, <a class="el" href="cardgame_8cpp_source.html#l00971">drawInfos()</a>, <a class="el" href="cardgame_8cpp_source.html#l01044">drawPlayerCards()</a>, <a class="el" href="cardgame_8cpp_source.html#l00991">drawPlayers()</a>, <a class="el" href="cardgame_8cpp_source.html#l00324">getGame()</a>, <a class="el" href="cardgame_8cpp_source.html#l01215">IAPlay()</a>, <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, <a class="el" href="cardgame_8cpp_source.html#l00112">datasgame::piocheCards</a>, <a class="el" href="cardgame_8cpp_source.html#l01080">playACard()</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>, <a class="el" href="cardgame_8cpp_source.html#l00082">datasplayer::points</a>, <a class="el" href="cardgame_8cpp_source.html#l01164">testCard()</a>, <a class="el" href="cardgame_8cpp_source.html#l01129">turnPlayers()</a>, <a class="el" href="cardgame_8cpp_source.html#l00598">writeGame()</a>, and <a class="el" href="cardgame_8cpp_source.html#l00931">writeWinner()</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a34e3bca71a5ee6d2f88005e6abc518ab"></a><!-- doxytag: member="CardGameTools::generateUnicCookie" ref="a34e3bca71a5ee6d2f88005e6abc518ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CardGameTools::generateUnicCookie </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>generate an unique id </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the id generated </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00655">655</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a841d2554cf28f1b108a141e5d6819ba3"></a><!-- doxytag: member="CardGameTools::getFileGame" ref="a841d2554cf28f1b108a141e5d6819ba3" args="(string pName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CardGameTools::getFileGame </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get all game information from the name of the player. </p>
<p>read he game file and find the player for take all data of the player game </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>: the name of the player </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the data string structure of the game </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00286">286</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l00324">getGame()</a>.</p>

</div>
</div>
<a class="anchor" id="a190b838fbbb6305e7a750fe542912b20"></a><!-- doxytag: member="CardGameTools::getGame" ref="a190b838fbbb6305e7a750fe542912b20" args="(string pName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdatasgame.html">datasgame</a>* CardGameTools::getGame </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert the data to the datasgame struct. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>: the game data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the datasgame struct </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00324">324</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00087">datasplayer::actualCard</a>, <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, <a class="el" href="cardgame_8cpp_source.html#l00286">getFileGame()</a>, <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, <a class="el" href="cardgame_8cpp_source.html#l00112">datasgame::piocheCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>, and <a class="el" href="cardgame_8cpp_source.html#l00082">datasplayer::points</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="ad50d7fa03c5023b445b33705c09566b8"></a><!-- doxytag: member="CardGameTools::getNUMCookie" ref="ad50d7fa03c5023b445b33705c09566b8" args="(std::vector&lt; HTTPCookie &gt; pCookieVector)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CardGameTools::getNUMCookie </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> &gt;&#160;</td>
          <td class="paramname"><em>pCookieVector</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the cookie of the game from the list of the cookies. </p>
<p>We select our personnal cookie in the list of cookies sended by the user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pCookieVector</td><td>: the cookies list </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd>HTTPCookie </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the id of the player </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00214">214</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="HTTPCookie_8h_source.html#l00211">cgicc::HTTPCookie::getName()</a>, and <a class="el" href="HTTPCookie_8h_source.html#l00220">cgicc::HTTPCookie::getValue()</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="afd019ba73719b7ce9fa3d61bffc3ecfc"></a><!-- doxytag: member="CardGameTools::getValue" ref="afd019ba73719b7ce9fa3d61bffc3ecfc" args="(string pName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CardGameTools::getValue </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get all personnal information from the cookie's Id. </p>
<p>read he session file and find the player for take all personnal information </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>: the id of the player </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the data string structure of the player </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00245">245</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>, and <a class="el" href="FormEntry_8h_source.html#l00201">cgicc::FormEntry::operator*()</a>.</p>

</div>
</div>
<a class="anchor" id="abac281c9baaa2adcea9df78b012051fa"></a><!-- doxytag: member="CardGameTools::IAPlay" ref="abac281c9baaa2adcea9df78b012051fa" args="(datasgame *readedGame, int pId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::IAPlay </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>AI algorithme for one AI player. </p>
<p>Simple AI:</p>
<ul>
<li>If first in the game , He choose the first card in his cards list</li>
<li>Don't play without cards</li>
<li>Play the best card with the same color in the actual game</li>
<li>If no cards correspond, choose the first in the cards list <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">readedGame</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td class="paramname">pId</td><td>: the id in the players list </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01215">1215</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l01080">playACard()</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>, and <a class="el" href="cardgame_8cpp_source.html#l01129">turnPlayers()</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a82aa8048b99856640bcca228ebd7c69b"></a><!-- doxytag: member="CardGameTools::loadAndMixCards" ref="a82aa8048b99856640bcca228ebd7c69b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;string&gt;* CardGameTools::loadAndMixCards </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Generate a mixed cards list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the cards list </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00708">708</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l00851">createGame()</a>.</p>

</div>
</div>
<a class="anchor" id="a90577d98ea437314196fef1ccd40b1ea"></a><!-- doxytag: member="CardGameTools::playACard" ref="a90577d98ea437314196fef1ccd40b1ea" args="(datasplayer *vPlayer, datasgame *readedGame, string *card)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::playACard </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&#160;</td>
          <td class="paramname"><em>card</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The algorithm when a card is played. </p>
<p>When we choose a card , we need to add the card in a specific cards list and we need to extract the card from the player cards list Work only for AI players </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd>
<dd>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
    <tr><td class="paramname">readedGame</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td class="paramname">card</td><td>: the played card </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01080">1080</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00112">datasgame::piocheCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, and <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>, and <a class="el" href="cardgame_8cpp_source.html#l01215">IAPlay()</a>.</p>

</div>
</div>
<a class="anchor" id="ac5dd6196d07df0a2034eadd3fc1cae6b"></a><!-- doxytag: member="CardGameTools::testCard" ref="ac5dd6196d07df0a2034eadd3fc1cae6b" args="(datasplayer *vPlayer, datasgame *readedGame, string *card)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CardGameTools::testCard </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&#160;</td>
          <td class="paramname"><em>card</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test if the card is playable. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd>
<dd>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
    <tr><td class="paramname">readedGame</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td class="paramname">card</td><td>: the card wanted </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if it's good to play and false for others cases </dd></dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01164">1164</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, and <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a49f4ad5adce087a27e4b00c29bdd71b4"></a><!-- doxytag: member="CardGameTools::turnPlayers" ref="a49f4ad5adce087a27e4b00c29bdd71b4" args="(datasplayer *vPlayer, datasgame *readedGame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::turnPlayers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>readedGame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the hand in the game. </p>
<p>The next candidate is to the right on the play table </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd>
<dd>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
    <tr><td class="paramname">readedGame</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l01129">1129</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, and <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>, and <a class="el" href="cardgame_8cpp_source.html#l01215">IAPlay()</a>.</p>

</div>
</div>
<a class="anchor" id="a392443dca7f6fcb831dcd061ca94a2f3"></a><!-- doxytag: member="CardGameTools::writeFileGame" ref="a392443dca7f6fcb831dcd061ca94a2f3" args="(string pName, string pValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::writeFileGame </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Write data in the game file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>: the name of the player </td></tr>
    <tr><td class="paramname">pValue</td><td>: the value with game data </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00529">529</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>, and <a class="el" href="cardgame_8cpp_source.html#l00598">writeGame()</a>.</p>

</div>
</div>
<a class="anchor" id="a5cb76cfa8e26278ce819399543a0673e"></a><!-- doxytag: member="CardGameTools::writeGame" ref="a5cb76cfa8e26278ce819399543a0673e" args="(datasplayer *pPlayer, datasgame *pGame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::writeGame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>pPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>pGame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Write datasgame struct in the game file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pPlayer</td><td>: the data of the player </td></tr>
    <tr><td class="paramname">pGame</td><td>: the data of the game </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00598">598</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00087">datasplayer::actualCard</a>, <a class="el" href="cardgame_8cpp_source.html#l00067">datasplayer::cardsList</a>, <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, <a class="el" href="cardgame_8cpp_source.html#l00077">datasplayer::isPlaying</a>, <a class="el" href="cardgame_8cpp_source.html#l00112">datasgame::piocheCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00107">datasgame::playedCards</a>, <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>, <a class="el" href="cardgame_8cpp_source.html#l00082">datasplayer::points</a>, and <a class="el" href="cardgame_8cpp_source.html#l00529">writeFileGame()</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l00851">createGame()</a>, and <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
<a class="anchor" id="a25f615ce8d32e72637560aabd8833227"></a><!-- doxytag: member="CardGameTools::writeValue" ref="a25f615ce8d32e72637560aabd8833227" args="(string pName, string pValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::writeValue </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Write data in the cookie file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>: the id of the player </td></tr>
    <tr><td class="paramname">pValue</td><td>: the value with personnal data </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00512">512</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01479">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a410190d4b60fd5e6d777107d4fbd0f90"></a><!-- doxytag: member="CardGameTools::writeWinner" ref="a410190d4b60fd5e6d777107d4fbd0f90" args="(datasplayer *vPlayer, datasgame *pGame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CardGameTools::writeWinner </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdatasplayer.html">datasplayer</a> *&#160;</td>
          <td class="paramname"><em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structdatasgame.html">datasgame</a> *&#160;</td>
          <td class="paramname"><em>pGame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the winner informations. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd>
<dd>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vPlayer</td><td>: The data of the current player to display </td></tr>
    <tr><td class="paramname">pGame</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="cardgame_8cpp_source.html#l00931">931</a> of file <a class="el" href="cardgame_8cpp_source.html">cardgame.cpp</a>.</p>

<p>References <a class="el" href="cardgame_8cpp_source.html#l00072">datasplayer::identifiant</a>, and <a class="el" href="cardgame_8cpp_source.html#l00102">datasgame::playersList</a>.</p>

<p>Referenced by <a class="el" href="cardgame_8cpp_source.html#l01275">gameRules()</a>.</p>

</div>
</div>
</div>
<!-- $Id: footer.html,v 1.7 2004/06/12 01:58:25 sbooth Exp $ -->

<hr>

<address><small>
<a href="http://www.cgicc.org">GNU cgicc</a> - A C++ class library for
writing CGI applications<br />
Copyright &copy; 1996 - 2004 
<a href="mailto:sboothATgnuDOTorg">Stephen F. Booth</a><br />
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front Cover Texts, and with no Back-Cover
Texts.<br />
Documentation generated Tue Apr 12 2011 01:10:12 for cgicc by
<a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.7.4
</small></address>

</body>

</html>