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: 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">
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">Position
</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 Each possible position for a piece is an object Each neighbour is another
92 <div id=
"method-list">
93 <h3 class=
"section-bar">Methods
</h3>
95 <div class=
"name-list">
96 <a href=
"#M000012">base?
</a>
97 <a href=
"#M000010">new
</a>
98 <a href=
"#M000011">safe?
</a>
99 <a href=
"#M000013">to_s
</a>
100 <a href=
"#M000014">to_str
</a>
115 <div id=
"attribute-list">
116 <h3 class=
"section-bar">Attributes
</h3>
118 <div class=
"name-list">
120 <tr class=
"top-aligned-row context-row">
121 <td class=
"context-item-name">contains
</td>
122 <td class=
"context-item-value"> [RW]
</td>
123 <td class=
"context-item-desc"></td>
125 <tr class=
"top-aligned-row context-row">
126 <td class=
"context-item-name">neighbours
</td>
127 <td class=
"context-item-value"> [RW]
</td>
128 <td class=
"context-item-desc"></td>
130 <tr class=
"top-aligned-row context-row">
131 <td class=
"context-item-name">place
</td>
132 <td class=
"context-item-value"> [R]
</td>
133 <td class=
"context-item-desc"></td>
141 <!-- if method_list -->
143 <h3 class=
"section-bar">Public Class methods
</h3>
145 <div id=
"method-M000010" class=
"method-detail">
146 <a name=
"M000010"></a>
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>
155 <div class=
"method-description">
159 <h3 class=
"section-bar">Public Instance methods
</h3>
161 <div id=
"method-M000012" class=
"method-detail">
162 <a name=
"M000012"></a>
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>
171 <div class=
"method-description">
173 Is this position a
<a href=
"Position.html#M000012">base?
</a>
178 <div id=
"method-M000011" class=
"method-detail">
179 <a name=
"M000011"></a>
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>
188 <div class=
"method-description">
190 is this position a safety one (i.e. no captures allowed)?
195 <div id=
"method-M000013" class=
"method-detail">
196 <a name=
"M000013"></a>
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>
205 <div class=
"method-description">
209 <div id=
"method-M000014" class=
"method-detail">
210 <a name=
"M000014"></a>
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>
219 <div class=
"method-description">
230 <div id=
"validator-badges">
231 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>