1 <?xml version=
"1.0" encoding=
"iso-8859-1"?>
3 PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
8 <title>Class: GameState
</title>
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
10 <meta http-equiv=
"Content-Script-Type" content=
"text/javascript" />
11 <link rel=
"stylesheet" href=
".././rdoc-style.css" type=
"text/css" media=
"screen" />
12 <script type=
"text/javascript">
15 function popupCode( url ) {
16 window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=
150,width=
400")
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval( "document.all." + id );
27 elemStyle = elem.style;
29 if ( elemStyle.display != "block" ) {
30 elemStyle.display = "block"
32 elemStyle.display = "none"
38 // Make codeblocks hidden by default
39 document.writeln( "
<style type=\
"text/css\">div.method-source-code { display: none }
</style>" )
49 <div id="classHeader
">
50 <table class="header-table
">
51 <tr class="top-aligned-row
">
52 <td><strong>Class</strong></td>
53 <td class="class-name-in-header
">GameState</td>
55 <tr class="top-aligned-row
">
56 <td><strong>In:</strong></td>
58 <a href="../files/lib/libttc_rb.html
">
65 <tr class="top-aligned-row
">
66 <td><strong>Parent:</strong></td>
73 <!-- banner header -->
75 <div id="bodyContent
">
79 <div id="contextContent
">
81 <div id="description
">
83 A class to record each of the states previously found in a game. Note that
84 this is a deep copy of the pieces and what they‘ve captured, so
85 you‘ll need to convert back
93 <div id="method-list
">
94 <h3 class="section-bar
">Methods</h3>
96 <div class="name-list
">
97 <a href="#M000009
">==</a>
98 <a href="#M000008
">new</a>
113 <div id="attribute-list
">
114 <h3 class="section-bar
">Attributes</h3>
116 <div class="name-list
">
118 <tr class="top-aligned-row context-row
">
119 <td class="context-item-name
">move</td>
120 <td class="context-item-value
"> [RW] </td>
121 <td class="context-item-desc
"></td>
123 <tr class="top-aligned-row context-row
">
124 <td class="context-item-name
">pieces_after_move</td>
125 <td class="context-item-value
"> [RW] </td>
126 <td class="context-item-desc
"></td>
128 <tr class="top-aligned-row context-row
">
129 <td class="context-item-name
">player</td>
130 <td class="context-item-value
"> [RW] </td>
131 <td class="context-item-desc
"></td>
139 <!-- if method_list -->
141 <h3 class="section-bar
">Public Class methods</h3>
143 <div id="method-M000008
" class="method-detail
">
144 <a name="M000008
"></a>
146 <div class="method-heading
">
147 <a href="GameState.src/M000008.html
" target="Code
" class="method-signature
"
148 onclick="popupCode('GameState.src/M000008.html');return false;
">
149 <span class="method-name
">new</span><span class="method-args
">(move, player, pieces)</span>
153 <div class="method-description
">
157 <h3 class="section-bar
">Public Instance methods</h3>
159 <div id="method-M000009
" class="method-detail
">
160 <a name="M000009
"></a>
162 <div class="method-heading
">
163 <a href="GameState.src/M000009.html
" target="Code
" class="method-signature
"
164 onclick="popupCode('GameState.src/M000009.html');return false;
">
165 <span class="method-name
">==</span><span class="method-args
">(other)</span>
169 <div class="method-description
">
180 <div id="validator-badges
">
181 <p><small><a href="http://validator.w3.org/check/referer
">[Validate]</a></small></p>