Initial commit
[trapthecap.git] / doc / classes / .svn / text-base / Position.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: Position</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">Position</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 possible position for a piece is an object Each neighbour is another
84 position object
85 </p>
86
87 </div>
88
89
90 </div>
91
92 <div id="method-list">
93 <h3 class="section-bar">Methods</h3>
94
95 <div class="name-list">
96 <a href="#M000012">base?</a>&nbsp;&nbsp;
97 <a href="#M000010">new</a>&nbsp;&nbsp;
98 <a href="#M000011">safe?</a>&nbsp;&nbsp;
99 <a href="#M000013">to_s</a>&nbsp;&nbsp;
100 <a href="#M000014">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">contains</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">neighbours</td>
127 <td class="context-item-value">&nbsp;[RW]&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">place</td>
132 <td class="context-item-value">&nbsp;[R]&nbsp;</td>
133 <td class="context-item-desc"></td>
134 </tr>
135 </table>
136 </div>
137 </div>
138
139
140
141 <!-- if method_list -->
142 <div id="methods">
143 <h3 class="section-bar">Public Class methods</h3>
144
145 <div id="method-M000010" class="method-detail">
146 <a name="M000010"></a>
147
148 <div class="method-heading">
149 <a href="Position.src/M000010.html" target="Code" class="method-signature"
150 onclick="popupCode('Position.src/M000010.html');return false;">
151 <span class="method-name">new</span><span class="method-args">(place, safety, base)</span>
152 </a>
153 </div>
154
155 <div class="method-description">
156 </div>
157 </div>
158
159 <h3 class="section-bar">Public Instance methods</h3>
160
161 <div id="method-M000012" class="method-detail">
162 <a name="M000012"></a>
163
164 <div class="method-heading">
165 <a href="Position.src/M000012.html" target="Code" class="method-signature"
166 onclick="popupCode('Position.src/M000012.html');return false;">
167 <span class="method-name">base?</span><span class="method-args">()</span>
168 </a>
169 </div>
170
171 <div class="method-description">
172 <p>
173 Is this position a <a href="Position.html#M000012">base?</a>
174 </p>
175 </div>
176 </div>
177
178 <div id="method-M000011" class="method-detail">
179 <a name="M000011"></a>
180
181 <div class="method-heading">
182 <a href="Position.src/M000011.html" target="Code" class="method-signature"
183 onclick="popupCode('Position.src/M000011.html');return false;">
184 <span class="method-name">safe?</span><span class="method-args">()</span>
185 </a>
186 </div>
187
188 <div class="method-description">
189 <p>
190 is this position a safety one (i.e. no captures allowed)?
191 </p>
192 </div>
193 </div>
194
195 <div id="method-M000013" class="method-detail">
196 <a name="M000013"></a>
197
198 <div class="method-heading">
199 <a href="Position.src/M000013.html" target="Code" class="method-signature"
200 onclick="popupCode('Position.src/M000013.html');return false;">
201 <span class="method-name">to_s</span><span class="method-args">()</span>
202 </a>
203 </div>
204
205 <div class="method-description">
206 </div>
207 </div>
208
209 <div id="method-M000014" class="method-detail">
210 <a name="M000014"></a>
211
212 <div class="method-heading">
213 <a href="Position.src/M000014.html" target="Code" class="method-signature"
214 onclick="popupCode('Position.src/M000014.html');return false;">
215 <span class="method-name">to_str</span><span class="method-args">()</span>
216 </a>
217 </div>
218
219 <div class="method-description">
220 </div>
221 </div>
222
223
224 </div>
225
226
227 </div>
228
229
230 <div id="validator-badges">
231 <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
232 </div>
233
234 </body>
235 </html>