diff --git a/Sw1/Fig/methVoidVoid.dia b/Sw1/Fig/methVoidVoid.dia deleted file mode 100644 index 3e46135937e7c88d0120723850702773135266e3..0000000000000000000000000000000000000000 Binary files a/Sw1/Fig/methVoidVoid.dia and /dev/null differ diff --git a/Sw1/Ref/Fig/turnLeft.fig b/Sw1/Ref/Fig/turnLeft.fig new file mode 100644 index 0000000000000000000000000000000000000000..35b029caf1ad7a4fe9b11a7ccaa48b67655cd7f5 --- /dev/null +++ b/Sw1/Ref/Fig/turnLeft.fig @@ -0,0 +1,24 @@ +#FIG 3.2 Produced by xfig version 3.2.5b +Landscape +Center +Metric +A4 +100.00 +Single +-2 +1200 2 +2 1 0 1 0 7 740 -1 -1 0.000 0 0 -1 1 0 2 + 2 1 1.00 60.00 120.00 + 2475 1530 2475 2070 +2 1 0 1 14 7 770 -1 -1 0.000 0 0 -1 1 0 2 + 2 1 1.00 60.00 120.00 + 3285 1170 3420 720 +2 1 0 1 4 7 750 -1 -1 0.000 0 0 -1 1 0 2 + 2 1 1.00 60.00 120.00 + 1440 1260 1125 765 +4 0 0 800 -1 14 14 0.0000 4 150 1200 1980 1440 turnLeft\001 +4 0 14 780 -1 14 14 0.0000 4 195 300 3150 1395 ()\001 +4 0 4 760 -1 14 14 0.0000 4 150 600 1260 1440 void\001 +4 0 0 740 -1 14 14 0.0000 4 150 1950 1755 2250 Method's name\001 +4 0 14 770 -1 14 14 0.0000 4 180 1800 2835 675 No Arguments\001 +4 0 4 750 -1 14 14 0.0000 4 195 2250 45 675 Returns nothing\001 diff --git a/Sw1/sd1.xml b/Sw1/sd1.xml index c7afe82f398ee6aea0a42a2ff02636fe50ec2e8e..61b51f413016a667a3c10d4716cdadfb501eda02 100644 --- a/Sw1/sd1.xml +++ b/Sw1/sd1.xml @@ -200,11 +200,12 @@ <para>Methods</para> <figure xml:id="sw1FigMethodVoidVoid"> - <title/> + <title>A method named <code>move</code> having no arguments and + no return type.</title> <mediaobject> <imageobject> - <imagedata fileref="Fig/methVoidVoid.svg"/> + <imagedata fileref="Ref/Fig/turnLeft.fig"/> </imageobject> </mediaobject> </figure> @@ -243,8 +244,8 @@ constructor's code achieves the desired behaviour:</para> <programlisting>public class WombatWorld { - public WombatWorld() { <emphasis role="bold">// Constructor will be called each time a WombatWorld is being created</emphasis> - super(8, 8, 60); + public WombatWorld() { <emphasis role="bold">// Constructor will be called each time a WombatWorld</emphasis> + super(8, 8, 60); <emphasis role="bold">// is being created</emphasis> setBackground("cell.jpg"); setPaintOrder(Wombat.class, Leaf.class); <emphasis role="bold">populate()</emphasis>; <co