Initial commit
[trapthecap.git] / doc / classes / .svn / text-base / Piece.html.svn-base
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8 <title>Class: Piece</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">
13 // <![CDATA[
14
15 function popupCode( url ) {
16 window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17 }
18
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval( "document.all." + id );
24 else
25 return false;
26
27 elemStyle = elem.style;
28
29 if ( elemStyle.display != "block" ) {
30 elemStyle.display = "block"
31 } else {
32 elemStyle.display = "none"
33 }
34
35 return true;
36 }
37
38 // Make codeblocks hidden by default
39 document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
41 // ]]>
42 </script>
43
44 </head>
45 <body>
46
47
48
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">Piece</td>
54 </tr>
55 <tr class="top-aligned-row">
56 <td><strong>In:</strong></td>
57 <td>
58 <a href="../files/lib/libttc_rb.html">
59 lib/libttc.rb
60 </a>
61 <br />
62 </td>
63 </tr>
64
65 <tr class="top-aligned-row">
66 <td><strong>Parent:</strong></td>
67 <td>
68 Object
69 </td>
70 </tr>
71 </table>
72 </div>
73 <!-- banner header -->
74
75 <div id="bodyContent">
76
77
78
79 <div id="contextContent">
80
81 <div id="description">
82 <p>
83 Each piece on the board is an object
84 </p>
85
86 </div>
87
88
89 </div>
90
91 <div id="method-list">
92 <h3 class="section-bar">Methods</h3>
93
94 <div class="name-list">
95 <a href="#M000052">capture</a>&nbsp;&nbsp;
96 <a href="#M000051">move_to</a>&nbsp;&nbsp;
97 <a href="#M000048">name</a>&nbsp;&nbsp;
98 <a href="#M000047">new</a>&nbsp;&nbsp;
99 <a href="#M000049">to_s</a>&nbsp;&nbsp;
100 <a href="#M000050">to_str</a>&nbsp;&nbsp;
101 </div>
102 </div>
103
104 </div>
105
106
107 <!-- if includes -->
108
109 <div id="section">
110
111
112
113
114
115 <div id="attribute-list">
116 <h3 class="section-bar">Attributes</h3>
117
118 <div class="name-list">
119 <table>
120 <tr class="top-aligned-row context-row">
121 <td class="context-item-name">captured</td>
122 <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
123 <td class="context-item-desc"></td>
124 </tr>
125 <tr class="top-aligned-row context-row">
126 <td class="context-item-name">colour</td>
127 <td class="context-item-value">&nbsp;[R]&nbsp;</td>
128 <td class="context-item-desc"></td>
129 </tr>
130 <tr class="top-aligned-row context-row">
131 <td class="context-item-name">contains</td>
132 <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
133 <td class="context-item-desc"></td>
134 </tr>
135 <tr class="top-aligned-row context-row">
136 <td class="context-item-name">position</td>
137 <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
138 <td class="context-item-desc"></td>
139 </tr>
140 </table>
141 </div>
142 </div>
143
144
145
146 <!-- if method_list -->
147 <div id="methods">
148 <h3 class="section-bar">Public Class methods</h3>
149
150 <div id="method-M000047" class="method-detail">
151 <a name="M000047"></a>
152
153 <div class="method-heading">
154 <a href="Piece.src/M000047.html" target="Code" class="method-signature"
155 onclick="popupCode('Piece.src/M000047.html');return false;">
156 <span class="method-name">new</span><span class="method-args">(number, position, colour)</span>
157 </a>
158 </div>
159
160 <div class="method-description">
161 </div>
162 </div>
163
164 <h3 class="section-bar">Public Instance methods</h3>
165
166 <div id="method-M000052" class="method-detail">
167 <a name="M000052"></a>
168
169 <div class="method-heading">
170 <a href="Piece.src/M000052.html" target="Code" class="method-signature"
171 onclick="popupCode('Piece.src/M000052.html');return false;">
172 <span class="method-name">capture</span><span class="method-args">(other_piece)</span>
173 </a>
174 </div>
175
176 <div class="method-description">
177 <p>
178 Caputre another piece
179 </p>
180 </div>
181 </div>
182
183 <div id="method-M000051" class="method-detail">
184 <a name="M000051"></a>
185
186 <div class="method-heading">
187 <a href="Piece.src/M000051.html" target="Code" class="method-signature"
188 onclick="popupCode('Piece.src/M000051.html');return false;">
189 <span class="method-name">move_to</span><span class="method-args">(new_position)</span>
190 </a>
191 </div>
192
193 <div class="method-description">
194 </div>
195 </div>
196
197 <div id="method-M000048" class="method-detail">
198 <a name="M000048"></a>
199
200 <div class="method-heading">
201 <a href="Piece.src/M000048.html" target="Code" class="method-signature"
202 onclick="popupCode('Piece.src/M000048.html');return false;">
203 <span class="method-name">name</span><span class="method-args">()</span>
204 </a>
205 </div>
206
207 <div class="method-description">
208 </div>
209 </div>
210
211 <div id="method-M000049" class="method-detail">
212 <a name="M000049"></a>
213
214 <div class="method-heading">
215 <a href="Piece.src/M000049.html" target="Code" class="method-signature"
216 onclick="popupCode('Piece.src/M000049.html');return false;">
217 <span class="method-name">to_s</span><span class="method-args">()</span>
218 </a>
219 </div>
220
221 <div class="method-description">
222 </div>
223 </div>
224
225 <div id="method-M000050" class="method-detail">
226 <a name="M000050"></a>
227
228 <div class="method-heading">
229 <a href="Piece.src/M000050.html" target="Code" class="method-signature"
230 onclick="popupCode('Piece.src/M000050.html');return false;">
231 <span class="method-name">to_str</span><span class="method-args">()</span>
232 </a>
233 </div>
234
235 <div class="method-description">
236 </div>
237 </div>
238
239
240 </div>
241
242
243 </div>
244
245
246 <div id="validator-badges">
247 <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
248 </div>
249
250 </body>
251 </html>