Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 82bf76c75b44c3e54c5dc9d8c4b11ab5 > files > 258

cgicc-3.2.8-1mdv2010.0.i586.rpm

<!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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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 class="tabs">
    <ul>
      <li><a href="namespaces.html"><span>Namespace&nbsp;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>CardGameTools Namespace Reference</h1>Contain all the functions to the coding game.  
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#72303f6bb4da46088a162e104baea48a">convertStructToString</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *pPlayer)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate a data in a single line from the data of the player.  <a href="#72303f6bb4da46088a162e104baea48a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdatasplayer.html">datasplayer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#991f73f078a31a0a16245db5cb8e57bd">convertStringToStuct</a> (string pPlayer)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate a <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct from a single line.  <a href="#991f73f078a31a0a16245db5cb8e57bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#d50d7fa03c5023b445b33705c09566b8">getNUMCookie</a> (std::vector&lt; <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> &gt; pCookieVector)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the cookie of the game from the list of the cookies.  <a href="#d50d7fa03c5023b445b33705c09566b8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#fd019ba73719b7ce9fa3d61bffc3ecfc">getValue</a> (string pName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get all personnal information from the cookie's Id.  <a href="#fd019ba73719b7ce9fa3d61bffc3ecfc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#841d2554cf28f1b108a141e5d6819ba3">getFileGame</a> (string pName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get all game information from the name of the player.  <a href="#841d2554cf28f1b108a141e5d6819ba3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdatasgame.html">datasgame</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#190b838fbbb6305e7a750fe542912b20">getGame</a> (string pName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert the data to the <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct.  <a href="#190b838fbbb6305e7a750fe542912b20"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#25f615ce8d32e72637560aabd8833227">writeValue</a> (string pName, string pValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write data in the cookie file.  <a href="#25f615ce8d32e72637560aabd8833227"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#392443dca7f6fcb831dcd061ca94a2f3">writeFileGame</a> (string pName, string pValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write data in the game file.  <a href="#392443dca7f6fcb831dcd061ca94a2f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#5cb76cfa8e26278ce819399543a0673e">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">&nbsp;</td><td class="mdescRight">Write <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct in the game file.  <a href="#5cb76cfa8e26278ce819399543a0673e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#34e3bca71a5ee6d2f88005e6abc518ab">generateUnicCookie</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">generate an unique id  <a href="#34e3bca71a5ee6d2f88005e6abc518ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#467cbafd40025916ee44fdbe4a0bc4ce">countGame</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read the game file and count the number of games.  <a href="#467cbafd40025916ee44fdbe4a0bc4ce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">vector&lt; string &gt; *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#82aa8048b99856640bcca228ebd7c69b">loadAndMixCards</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate a mixed cards list.  <a href="#82aa8048b99856640bcca228ebd7c69b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#fec447440a32183dfbd4aa19cc035593">calculateCard</a> (string pCard)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the value of the card.  <a href="#fec447440a32183dfbd4aa19cc035593"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdatasgame.html">datasgame</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#966d65ef179f72f71a5e38b5b3795fcf">createGame</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a game from the data of the player.  <a href="#966d65ef179f72f71a5e38b5b3795fcf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#933ea4962f0980aae5ca4ce1e82653b6">drawCards</a> (vector&lt; string &gt; *cardList)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the cards list.  <a href="#933ea4962f0980aae5ca4ce1e82653b6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#410190d4b60fd5e6d777107d4fbd0f90">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">&nbsp;</td><td class="mdescRight">Draw the winner informations.  <a href="#410190d4b60fd5e6d777107d4fbd0f90"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#7f7bc93d35d586d91f0936d334d55e63">drawInfos</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw player informations.  <a href="#7f7bc93d35d586d91f0936d334d55e63"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#2123161a35d94144aeb726a0b44a5113">drawPlayers</a> (<a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw players game informations.  <a href="#2123161a35d94144aeb726a0b44a5113"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#bda97ad8b16c553d12994a3d005c25c1">drawCardInPlay</a> (<a class="el" href="structdatasgame.html">datasgame</a> *pGame)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the cards in the table.  <a href="#bda97ad8b16c553d12994a3d005c25c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#d4133b93a93ce4cacc3a5b7ca0efc126">drawPlayerCards</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the cards of the player.  <a href="#d4133b93a93ce4cacc3a5b7ca0efc126"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#90577d98ea437314196fef1ccd40b1ea">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">&nbsp;</td><td class="mdescRight">The algorithm when a card is played.  <a href="#90577d98ea437314196fef1ccd40b1ea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#49f4ad5adce087a27e4b00c29bdd71b4">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">&nbsp;</td><td class="mdescRight">Change the hand in the game.  <a href="#49f4ad5adce087a27e4b00c29bdd71b4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#c5dd6196d07df0a2034eadd3fc1cae6b">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">&nbsp;</td><td class="mdescRight">Test if the card is playable.  <a href="#c5dd6196d07df0a2034eadd3fc1cae6b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#bac281c9baaa2adcea9df78b012051fa">IAPlay</a> (<a class="el" href="structdatasgame.html">datasgame</a> *readedGame, int pId)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">AI algorithme for one AI player.  <a href="#bac281c9baaa2adcea9df78b012051fa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCardGameTools.html#c92c8b5687cc611e0d0edfb59e6fc783">gameRules</a> (<a class="el" href="structdatasplayer.html">datasplayer</a> *vPlayer, string *action, string *card)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The rules Algorithm.  <a href="#c92c8b5687cc611e0d0edfb59e6fc783"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Contain all the functions to the coding game. 
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="fec447440a32183dfbd4aa19cc035593"></a><!-- doxytag: member="CardGameTools::calculateCard" ref="fec447440a32183dfbd4aa19cc035593" 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&nbsp;</td>
          <td class="paramname"> <em>pCard</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the value of the card. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pCard</em>&nbsp;</td><td>: The card to evaluate </td></tr>
  </table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="991f73f078a31a0a16245db5cb8e57bd"></a><!-- doxytag: member="CardGameTools::convertStringToStuct" ref="991f73f078a31a0a16245db5cb8e57bd" 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&nbsp;</td>
          <td class="paramname"> <em>pPlayer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Generate a <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct from a single line. 
<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|| <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pPlayer</em>&nbsp;</td><td>The data to convert </td></tr>
  </table>
</dl>
<dl class="see" compact><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 <p>
<a class="el" href="namespaceCardGameTools.html#72303f6bb4da46088a162e104baea48a" 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" compact><dt><b>Returns:</b></dt><dd>Return the <a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> 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><p>
<a class="anchor" name="72303f6bb4da46088a162e104baea48a"></a><!-- doxytag: member="CardGameTools::convertStructToString" ref="72303f6bb4da46088a162e104baea48a" 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> *&nbsp;</td>
          <td class="paramname"> <em>pPlayer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Generate a data in a single line from the data of the player. 
<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|| <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>*pPlayer</em>&nbsp;</td><td>A pointer on the data to convert </td></tr>
  </table>
</dl>
<dl class="see" compact><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 <p>
<a class="el" href="namespaceCardGameTools.html#991f73f078a31a0a16245db5cb8e57bd" title="Generate a datasgame struct from a single line.">convertStringToStuct</a> Do the same in the other sense </dd></dl>
<dl class="return" compact><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><p>
<a class="anchor" name="467cbafd40025916ee44fdbe4a0bc4ce"></a><!-- doxytag: member="CardGameTools::countGame" ref="467cbafd40025916ee44fdbe4a0bc4ce" 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>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Read the game file and count the number of games. 
<p>
<dl class="return" compact><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><p>
<a class="anchor" name="966d65ef179f72f71a5e38b5b3795fcf"></a><!-- doxytag: member="CardGameTools::createGame" ref="966d65ef179f72f71a5e38b5b3795fcf" 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> *&nbsp;</td>
          <td class="paramname"> <em>vPlayer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a game from the data of the player. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> <p>
<a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the player </td></tr>
  </table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="bda97ad8b16c553d12994a3d005c25c1"></a><!-- doxytag: member="CardGameTools::drawCardInPlay" ref="bda97ad8b16c553d12994a3d005c25c1" 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> *&nbsp;</td>
          <td class="paramname"> <em>pGame</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw the cards in the table. 
<p>
<dl class="see" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="933ea4962f0980aae5ca4ce1e82653b6"></a><!-- doxytag: member="CardGameTools::drawCards" ref="933ea4962f0980aae5ca4ce1e82653b6" 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; *&nbsp;</td>
          <td class="paramname"> <em>cardList</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw the cards list. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cardList</em>&nbsp;</td><td>: The cards to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="7f7bc93d35d586d91f0936d334d55e63"></a><!-- doxytag: member="CardGameTools::drawInfos" ref="7f7bc93d35d586d91f0936d334d55e63" 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> *&nbsp;</td>
          <td class="paramname"> <em>vPlayer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw player informations. 
<p>
<dl class="see" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="d4133b93a93ce4cacc3a5b7ca0efc126"></a><!-- doxytag: member="CardGameTools::drawPlayerCards" ref="d4133b93a93ce4cacc3a5b7ca0efc126" 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> *&nbsp;</td>
          <td class="paramname"> <em>vPlayer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw the cards of the player. 
<p>
<dl class="see" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="2123161a35d94144aeb726a0b44a5113"></a><!-- doxytag: member="CardGameTools::drawPlayers" ref="2123161a35d94144aeb726a0b44a5113" 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> *&nbsp;</td>
          <td class="paramname"> <em>pGame</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw players game informations. 
<p>
<dl class="see" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="c92c8b5687cc611e0d0edfb59e6fc783"></a><!-- doxytag: member="CardGameTools::gameRules" ref="c92c8b5687cc611e0d0edfb59e6fc783" 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> *&nbsp;</td>
          <td class="paramname"> <em>vPlayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&nbsp;</td>
          <td class="paramname"> <em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&nbsp;</td>
          <td class="paramname"> <em>card</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The rules Algorithm. 
<p>
<dl class="see" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>action</em>&nbsp;</td><td>: Action of the human player </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>card</em>&nbsp;</td><td>: the card wanted </td></tr>
  </table>
</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><p>
<a class="anchor" name="34e3bca71a5ee6d2f88005e6abc518ab"></a><!-- doxytag: member="CardGameTools::generateUnicCookie" ref="34e3bca71a5ee6d2f88005e6abc518ab" 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>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
generate an unique id 
<p>
<dl class="return" compact><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><p>
<a class="anchor" name="841d2554cf28f1b108a141e5d6819ba3"></a><!-- doxytag: member="CardGameTools::getFileGame" ref="841d2554cf28f1b108a141e5d6819ba3" 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&nbsp;</td>
          <td class="paramname"> <em>pName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get all game information from the name of the player. 
<p>
read he game file and find the player for take all data of the player game <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pName</em>&nbsp;</td><td>: the name of the player </td></tr>
  </table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="190b838fbbb6305e7a750fe542912b20"></a><!-- doxytag: member="CardGameTools::getGame" ref="190b838fbbb6305e7a750fe542912b20" 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&nbsp;</td>
          <td class="paramname"> <em>pName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert the data to the <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pName</em>&nbsp;</td><td>: the game data </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return the <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> 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><p>
<a class="anchor" name="d50d7fa03c5023b445b33705c09566b8"></a><!-- doxytag: member="CardGameTools::getNUMCookie" ref="d50d7fa03c5023b445b33705c09566b8" 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;&nbsp;</td>
          <td class="paramname"> <em>pCookieVector</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the cookie of the game from the list of the cookies. 
<p>
We select our personnal cookie in the list of cookies sended by the user. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pCookieVector</em>&nbsp;</td><td>: the cookies list </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>HTTPCookie </dd></dl>
<dl class="return" compact><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><p>
<a class="anchor" name="fd019ba73719b7ce9fa3d61bffc3ecfc"></a><!-- doxytag: member="CardGameTools::getValue" ref="fd019ba73719b7ce9fa3d61bffc3ecfc" 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&nbsp;</td>
          <td class="paramname"> <em>pName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get all personnal information from the cookie's Id. 
<p>
read he session file and find the player for take all personnal information <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pName</em>&nbsp;</td><td>: the id of the player </td></tr>
  </table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="bac281c9baaa2adcea9df78b012051fa"></a><!-- doxytag: member="CardGameTools::IAPlay" ref="bac281c9baaa2adcea9df78b012051fa" 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> *&nbsp;</td>
          <td class="paramname"> <em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pId</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
AI algorithme for one AI player. 
<p>
Simple AI:<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" compact><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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>readedGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pId</em>&nbsp;</td><td>: the id in the players list </td></tr>
  </table>
</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><p>
<a class="anchor" name="82aa8048b99856640bcca228ebd7c69b"></a><!-- doxytag: member="CardGameTools::loadAndMixCards" ref="82aa8048b99856640bcca228ebd7c69b" 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>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Generate a mixed cards list. 
<p>
<dl class="return" compact><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><p>
<a class="anchor" name="90577d98ea437314196fef1ccd40b1ea"></a><!-- doxytag: member="CardGameTools::playACard" ref="90577d98ea437314196fef1ccd40b1ea" 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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&nbsp;</td>
          <td class="paramname"> <em>card</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The algorithm when a card is played. 
<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 <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> <p>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>readedGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>card</em>&nbsp;</td><td>: the played card </td></tr>
  </table>
</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><p>
<a class="anchor" name="c5dd6196d07df0a2034eadd3fc1cae6b"></a><!-- doxytag: member="CardGameTools::testCard" ref="c5dd6196d07df0a2034eadd3fc1cae6b" 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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>readedGame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string *&nbsp;</td>
          <td class="paramname"> <em>card</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <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" compact><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> <p>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>readedGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>card</em>&nbsp;</td><td>: the card wanted </td></tr>
  </table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="49f4ad5adce087a27e4b00c29bdd71b4"></a><!-- doxytag: member="CardGameTools::turnPlayers" ref="49f4ad5adce087a27e4b00c29bdd71b4" 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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>readedGame</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Change the hand in the game. 
<p>
The next candidate is to the right on the play table <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> <p>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>readedGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
</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><p>
<a class="anchor" name="392443dca7f6fcb831dcd061ca94a2f3"></a><!-- doxytag: member="CardGameTools::writeFileGame" ref="392443dca7f6fcb831dcd061ca94a2f3" 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&nbsp;</td>
          <td class="paramname"> <em>pName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>pValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write data in the game file. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pName</em>&nbsp;</td><td>: the name of the player </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pValue</em>&nbsp;</td><td>: the value with game data </td></tr>
  </table>
</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><p>
<a class="anchor" name="5cb76cfa8e26278ce819399543a0673e"></a><!-- doxytag: member="CardGameTools::writeGame" ref="5cb76cfa8e26278ce819399543a0673e" 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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>pGame</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write <a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> struct in the game file. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pPlayer</em>&nbsp;</td><td>: the data of the player </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pGame</em>&nbsp;</td><td>: the data of the game </td></tr>
  </table>
</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><p>
<a class="anchor" name="25f615ce8d32e72637560aabd8833227"></a><!-- doxytag: member="CardGameTools::writeValue" ref="25f615ce8d32e72637560aabd8833227" 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&nbsp;</td>
          <td class="paramname"> <em>pName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>pValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write data in the cookie file. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pName</em>&nbsp;</td><td>: the id of the player </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pValue</em>&nbsp;</td><td>: the value with personnal data </td></tr>
  </table>
</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><p>
<a class="anchor" name="410190d4b60fd5e6d777107d4fbd0f90"></a><!-- doxytag: member="CardGameTools::writeWinner" ref="410190d4b60fd5e6d777107d4fbd0f90" 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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>pGame</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw the winner informations. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structdatasplayer.html" title="A data model for the player.">datasplayer</a> <p>
<a class="el" href="structdatasgame.html" title="A data model for the games.">datasgame</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>vPlayer</em>&nbsp;</td><td>: The data of the current player to display </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pGame</em>&nbsp;</td><td>: All the data of the gcurrent game to display </td></tr>
  </table>
</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><p>
</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 Jun 9 15:03:49 2009 for cgicc by
<a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.5.9
</small></address>

</body>

</html>