From 4373e29c927b754758f77c5b2a6039dc02e62638 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 10 Sep 2016 16:34:27 +0200 Subject: [PATCH] [SATCOM] Add "super" --- help/cbot/E/super.txt | 47 ++++++++++++++++++++ help/cbot/E/this.txt | 2 +- help/cbot/po/cbot.pot | 83 +++++++++++++++++++++++++++++++----- help/cbot/po/de.po | 85 +++++++++++++++++++++++++++++++------ help/cbot/po/fr.po | 83 +++++++++++++++++++++++++++++++----- help/cbot/po/pl.po | 85 +++++++++++++++++++++++++++++++------ help/cbot/po/ru.po | 85 +++++++++++++++++++++++++++++++------ help/generic/E/cbot.txt | 1 + help/generic/po/de.po | 19 +++++---- help/generic/po/fr.po | 19 +++++---- help/generic/po/generic.pot | 19 +++++---- help/generic/po/pl.po | 19 +++++---- help/generic/po/ru.po | 19 +++++---- 13 files changed, 464 insertions(+), 102 deletions(-) diff --git a/help/cbot/E/super.txt b/help/cbot/E/super.txt index e69de29b..a2f5b57e 100644 --- a/help/cbot/E/super.txt +++ b/help/cbot/E/super.txt @@ -0,0 +1,47 @@ +\b;Keyword \c;super\n; +This keyword is similar to \c;\l;this\u cbot\this;\n;, however, it grants access to methods from the parent class (see the \c;\l;extends\u cbot\extends;\n; keyword), which is especially useful for method overriding. + +\t;Example +\c; +\s;public class Parent +\s;{ +\s; protected int field; +\s; +\s; void Parent() +\s; { +\s; field = 0; +\s; } +\s; +\s; void Print() +\s; { +\s; message("Parent's field: " + field); +\s; } +\s;} +\s; +\s;public class Child extends Parent +\s;{ +\s; private int childsField; +\s; +\s; void Child() +\s; { +\s; super.Parent(); +\s; childsField = field + 1; +\s; } +\s; +\s; void Print() +\s; { +\s; super.Print(); +\s; message("Child's field: " + childsField); +\s; } +\s;} +\s; +\s;extern void object::Test() +\s;{ +\s; Child child(); +\s; child.Print(); // Will show both 0 and 1 +\s;} +\n; + +\t;See also +\c;\l;class\u cbot\class;\n;, \c;\l;this\u cbot\this;\n; +\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;. diff --git a/help/cbot/E/this.txt b/help/cbot/E/this.txt index 29e50c34..0aba4748 100644 --- a/help/cbot/E/this.txt +++ b/help/cbot/E/this.txt @@ -50,5 +50,5 @@ However if a field name is hidden by a parameter declaration or a variable decla \s;} \n; \t;See also -\c;\l;class\u cbot\class;\n; +\c;\l;class\u cbot\class;\n;, \c;\l;super\u cbot\super;\n; \l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;. diff --git a/help/cbot/po/cbot.pot b/help/cbot/po/cbot.pot index 244f20f4..4407b4ee 100644 --- a/help/cbot/po/cbot.pot +++ b/help/cbot/po/cbot.pot @@ -53,7 +53,7 @@ msgid "Time in seconds." msgstr "" #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "" @@ -4078,14 +4078,6 @@ msgid "" "}" msgstr "" -#. type: Plain text -#: ../E/this.txt:53 -#, no-wrap -msgid "" -"class\n" -"Programming, types and categories." -msgstr "" - #. type: \b; header #: ../E/thump.txt:1 #, no-wrap @@ -7139,7 +7131,7 @@ msgid "Firstly, the condition is valued and then the first result is returned if msgstr "" #. type: \t; header -#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 +#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 ../E/super.txt:4 #, no-wrap msgid "Example" msgstr "" @@ -7733,3 +7725,74 @@ msgid "" "class, public, private, extends\n" "Programming, types and categories." msgstr "" + +#. type: \b; header +#: ../E/super.txt:1 +#, no-wrap +msgid "Keyword super" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:2 +#, no-wrap +msgid "This keyword is similar to this, however, it grants access to methods from the parent class (see the extends keyword), which is especially useful for method overwriting." +msgstr "" + +#. type: Source code +#: ../E/super.txt:6 +#, no-wrap +msgid "" +" public class Parent\n" +" {\n" +"\tprotected int field;\n" +"\t\n" +"\tvoid Parent()\n" +"\t{\n" +"\t\tfield = 0;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tmessage(\"Parent's field: \" + field);\n" +"\t}\n" +"}\n" +"\n" +"public class Child extends Parent\n" +"{\n" +"\tprivate int childsField;\n" +"\t\n" +"\tvoid Child()\n" +"\t{\n" +"\t\tsuper.Parent();\n" +"\t\tchildsField = field + 1;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tsuper.Print();\n" +"\t\tmessage(\"Child's field: \" + childsField);\n" +"\t}\n" +"}\n" +"\n" +"extern void object::Test()\n" +"{\n" +"\tChild child();\n" +"\tchild.Print(); // Will show both 0 and 1\n" +"}" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:46 +#, no-wrap +msgid "" +"class, this\n" +"Programming, types and categories." +msgstr "" + +#. type: Plain text +#: ../E/this.txt:53 +#, no-wrap +msgid "" +"class, super\n" +"Programming, types and categories." +msgstr "" diff --git a/help/cbot/po/de.po b/help/cbot/po/de.po index ac8d2165..8816ea5c 100644 --- a/help/cbot/po/de.po +++ b/help/cbot/po/de.po @@ -53,7 +53,7 @@ msgid "Time in seconds." msgstr "Zeit in Sekunden." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Siehe auch" @@ -4666,16 +4666,6 @@ msgstr "" "\t}\n" "}" -#. type: Plain text -#: ../E/this.txt:53 -#, no-wrap -msgid "" -"class\n" -"Programming, types and categories." -msgstr "" -"Klassen\n" -"Die CBOT-Sprache, Variablentypen und Kategorien." - #. type: \b; header #: ../E/thump.txt:1 #, no-wrap @@ -7844,7 +7834,7 @@ msgid "Firstly, the condition is valued and then the first result is returned if msgstr "" #. type: \t; header -#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 +#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 ../E/super.txt:4 #, no-wrap msgid "Example" msgstr "" @@ -8438,3 +8428,74 @@ msgid "" "class, public, private, extends\n" "Programming, types and categories." msgstr "" + +#. type: \b; header +#: ../E/super.txt:1 +#, no-wrap +msgid "Keyword super" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:2 +#, no-wrap +msgid "This keyword is similar to this, however, it grants access to methods from the parent class (see the extends keyword), which is especially useful for method overwriting." +msgstr "" + +#. type: Source code +#: ../E/super.txt:6 +#, no-wrap +msgid "" +" public class Parent\n" +" {\n" +"\tprotected int field;\n" +"\t\n" +"\tvoid Parent()\n" +"\t{\n" +"\t\tfield = 0;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tmessage(\"Parent's field: \" + field);\n" +"\t}\n" +"}\n" +"\n" +"public class Child extends Parent\n" +"{\n" +"\tprivate int childsField;\n" +"\t\n" +"\tvoid Child()\n" +"\t{\n" +"\t\tsuper.Parent();\n" +"\t\tchildsField = field + 1;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tsuper.Print();\n" +"\t\tmessage(\"Child's field: \" + childsField);\n" +"\t}\n" +"}\n" +"\n" +"extern void object::Test()\n" +"{\n" +"\tChild child();\n" +"\tchild.Print(); // Will show both 0 and 1\n" +"}" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:46 +#, no-wrap +msgid "" +"class, this\n" +"Programming, types and categories." +msgstr "" + +#. type: Plain text +#: ../E/this.txt:53 +#, no-wrap +msgid "" +"class, super\n" +"Programming, types and categories." +msgstr "" diff --git a/help/cbot/po/fr.po b/help/cbot/po/fr.po index 3e8ac675..38b972bf 100644 --- a/help/cbot/po/fr.po +++ b/help/cbot/po/fr.po @@ -52,7 +52,7 @@ msgid "Time in seconds." msgstr "Temps en secondes." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Voir aussi" @@ -4721,14 +4721,6 @@ msgstr "" "\t}\n" "}" -#. type: Plain text -#: ../E/this.txt:53 -#, no-wrap -msgid "" -"class\n" -"Programming, types and categories." -msgstr "Programmation, types et catégories." - #. type: \b; header #: ../E/thump.txt:1 #, no-wrap @@ -7836,7 +7828,7 @@ msgid "Firstly, the condition is valued and then the first result is returned if msgstr "" #. type: \t; header -#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 +#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 ../E/super.txt:4 #, no-wrap msgid "Example" msgstr "" @@ -8437,3 +8429,74 @@ msgid "" "class, public, private, extends\n" "Programming, types and categories." msgstr "" + +#. type: \b; header +#: ../E/super.txt:1 +#, no-wrap +msgid "Keyword super" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:2 +#, no-wrap +msgid "This keyword is similar to this, however, it grants access to methods from the parent class (see the extends keyword), which is especially useful for method overwriting." +msgstr "" + +#. type: Source code +#: ../E/super.txt:6 +#, no-wrap +msgid "" +" public class Parent\n" +" {\n" +"\tprotected int field;\n" +"\t\n" +"\tvoid Parent()\n" +"\t{\n" +"\t\tfield = 0;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tmessage(\"Parent's field: \" + field);\n" +"\t}\n" +"}\n" +"\n" +"public class Child extends Parent\n" +"{\n" +"\tprivate int childsField;\n" +"\t\n" +"\tvoid Child()\n" +"\t{\n" +"\t\tsuper.Parent();\n" +"\t\tchildsField = field + 1;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tsuper.Print();\n" +"\t\tmessage(\"Child's field: \" + childsField);\n" +"\t}\n" +"}\n" +"\n" +"extern void object::Test()\n" +"{\n" +"\tChild child();\n" +"\tchild.Print(); // Will show both 0 and 1\n" +"}" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:46 +#, no-wrap +msgid "" +"class, this\n" +"Programming, types and categories." +msgstr "" + +#. type: Plain text +#: ../E/this.txt:53 +#, no-wrap +msgid "" +"class, super\n" +"Programming, types and categories." +msgstr "" diff --git a/help/cbot/po/pl.po b/help/cbot/po/pl.po index e60820d2..6bf2cda7 100644 --- a/help/cbot/po/pl.po +++ b/help/cbot/po/pl.po @@ -53,7 +53,7 @@ msgid "Time in seconds." msgstr "Czas w sekundach." #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "Zobacz również" @@ -4726,16 +4726,6 @@ msgstr "" "\t}\n" "}" -#. type: Plain text -#: ../E/this.txt:53 -#, no-wrap -msgid "" -"class\n" -"Programming, types and categories." -msgstr "" -"class\n" -"Programowanie, typy i kategorie." - #. type: \b; header #: ../E/thump.txt:1 #, no-wrap @@ -8010,7 +8000,7 @@ msgid "Firstly, the condition is valued and then the first result is returned if msgstr "" #. type: \t; header -#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 +#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 ../E/super.txt:4 #, no-wrap msgid "Example" msgstr "" @@ -8604,3 +8594,74 @@ msgid "" "class, public, private, extends\n" "Programming, types and categories." msgstr "" + +#. type: \b; header +#: ../E/super.txt:1 +#, no-wrap +msgid "Keyword super" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:2 +#, no-wrap +msgid "This keyword is similar to this, however, it grants access to methods from the parent class (see the extends keyword), which is especially useful for method overwriting." +msgstr "" + +#. type: Source code +#: ../E/super.txt:6 +#, no-wrap +msgid "" +" public class Parent\n" +" {\n" +"\tprotected int field;\n" +"\t\n" +"\tvoid Parent()\n" +"\t{\n" +"\t\tfield = 0;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tmessage(\"Parent's field: \" + field);\n" +"\t}\n" +"}\n" +"\n" +"public class Child extends Parent\n" +"{\n" +"\tprivate int childsField;\n" +"\t\n" +"\tvoid Child()\n" +"\t{\n" +"\t\tsuper.Parent();\n" +"\t\tchildsField = field + 1;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tsuper.Print();\n" +"\t\tmessage(\"Child's field: \" + childsField);\n" +"\t}\n" +"}\n" +"\n" +"extern void object::Test()\n" +"{\n" +"\tChild child();\n" +"\tchild.Print(); // Will show both 0 and 1\n" +"}" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:46 +#, no-wrap +msgid "" +"class, this\n" +"Programming, types and categories." +msgstr "" + +#. type: Plain text +#: ../E/this.txt:53 +#, no-wrap +msgid "" +"class, super\n" +"Programming, types and categories." +msgstr "" diff --git a/help/cbot/po/ru.po b/help/cbot/po/ru.po index e714373c..60777f2e 100644 --- a/help/cbot/po/ru.po +++ b/help/cbot/po/ru.po @@ -53,7 +53,7 @@ msgid "Time in seconds." msgstr "" #. type: \t; header -#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 +#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:27 ../E/buildingenabled.txt:22 ../E/busy.txt:14 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:109 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:129 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:18 ../E/openfile.txt:10 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:27 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19 #, no-wrap msgid "See also" msgstr "См. также" @@ -4711,16 +4711,6 @@ msgstr "" "\t}\n" "}" -#. type: Plain text -#: ../E/this.txt:53 -#, no-wrap -msgid "" -"class\n" -"Programming, types and categories." -msgstr "" -"class\n" -"Программирование, |l:типы\\u cbot и категории." - #. type: \b; header #: ../E/thump.txt:1 #, no-wrap @@ -7823,7 +7813,7 @@ msgid "Firstly, the condition is valued and then the first result is returned if msgstr "" #. type: \t; header -#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 +#: ../E/expr.txt:157 ../E/private.txt:4 ../E/protected.txt:4 ../E/super.txt:4 #, no-wrap msgid "Example" msgstr "" @@ -8417,3 +8407,74 @@ msgid "" "class, public, private, extends\n" "Programming, types and categories." msgstr "" + +#. type: \b; header +#: ../E/super.txt:1 +#, no-wrap +msgid "Keyword super" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:2 +#, no-wrap +msgid "This keyword is similar to this, however, it grants access to methods from the parent class (see the extends keyword), which is especially useful for method overwriting." +msgstr "" + +#. type: Source code +#: ../E/super.txt:6 +#, no-wrap +msgid "" +" public class Parent\n" +" {\n" +"\tprotected int field;\n" +"\t\n" +"\tvoid Parent()\n" +"\t{\n" +"\t\tfield = 0;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tmessage(\"Parent's field: \" + field);\n" +"\t}\n" +"}\n" +"\n" +"public class Child extends Parent\n" +"{\n" +"\tprivate int childsField;\n" +"\t\n" +"\tvoid Child()\n" +"\t{\n" +"\t\tsuper.Parent();\n" +"\t\tchildsField = field + 1;\n" +"\t}\n" +"\t\n" +"\tvoid Print()\n" +"\t{\n" +"\t\tsuper.Print();\n" +"\t\tmessage(\"Child's field: \" + childsField);\n" +"\t}\n" +"}\n" +"\n" +"extern void object::Test()\n" +"{\n" +"\tChild child();\n" +"\tchild.Print(); // Will show both 0 and 1\n" +"}" +msgstr "" + +#. type: Plain text +#: ../E/super.txt:46 +#, no-wrap +msgid "" +"class, this\n" +"Programming, types and categories." +msgstr "" + +#. type: Plain text +#: ../E/this.txt:53 +#, no-wrap +msgid "" +"class, super\n" +"Programming, types and categories." +msgstr "" diff --git a/help/generic/E/cbot.txt b/help/generic/E/cbot.txt index 43862a9c..aa9cad0f 100644 --- a/help/generic/E/cbot.txt +++ b/help/generic/E/cbot.txt @@ -91,6 +91,7 @@ Constants like \l;categories\u cbot\category; are displayed like that: \const;co \c;\l;synchronized\u cbot\synchro; \n;Prevents simultaneous execution \c;\l;new\u cbot\new; \n;Creates a new instance \c;\l;this\u cbot\this; \n;Reference to the current instance +\c;\l;super\u cbot\super; \n;Grants access to the parrent class \t;Specific instructions for strings: \c;\l;strlen\u cbot\strlen; \n;Gets string length diff --git a/help/generic/po/de.po b/help/generic/po/de.po index 430fae28..7526344f 100644 --- a/help/generic/po/de.po +++ b/help/generic/po/de.po @@ -125,13 +125,13 @@ msgid "Specific instructions for classes:" msgstr "Befehle für die Verwaltung von Klassen:" #. type: \t; header -#: ../E/cbot.txt:95 +#: ../E/cbot.txt:96 #, no-wrap msgid "Specific instructions for strings:" msgstr "Befehle für die Verarbeitung von Strings (Zeichenketten):" #. type: Plain text -#: ../E/cbot.txt:96 +#: ../E/cbot.txt:97 #, no-wrap msgid "" "strlen Gets string length\n" @@ -153,13 +153,13 @@ msgstr "" "strlower Umwandlung in Kleinbuchstaben" #. type: \t; header -#: ../E/cbot.txt:105 +#: ../E/cbot.txt:106 #, no-wrap msgid "Specific instructions for files:" msgstr "Befehle für die Dateiverwaltung:" #. type: Plain text -#: ../E/cbot.txt:106 +#: ../E/cbot.txt:107 #, no-wrap msgid "" "open Opens a file\n" @@ -177,13 +177,13 @@ msgstr "" "deletefile Löscht eine Datei" #. type: \t; header -#: ../E/battles.txt:53 ../E/cbot.txt:129 ../E/freehelp.txt:4 +#: ../E/battles.txt:53 ../E/cbot.txt:130 ../E/freehelp.txt:4 #, no-wrap msgid "See also" msgstr "Siehe auch" #. type: Plain text -#: ../E/cbot.txt:130 +#: ../E/cbot.txt:131 #, no-wrap msgid "Types and categories." msgstr "Variablentypen und Kategorien." @@ -660,13 +660,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:113 +#: ../E/cbot.txt:114 #, no-wrap msgid "Mathematical functions:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:114 +#: ../E/cbot.txt:115 #, no-wrap msgid "" "rand Returns a random value\n" @@ -1086,5 +1086,6 @@ msgid "" "static Declares a static class member\n" "synchronized Prevents simultaneous execution\n" "new Creates a new instance\n" -"this Reference to the current instance" +"this Reference to the current instance\n" +"super Grants access to the parrent class" msgstr "" diff --git a/help/generic/po/fr.po b/help/generic/po/fr.po index b51e6a7a..98dbb7bf 100644 --- a/help/generic/po/fr.po +++ b/help/generic/po/fr.po @@ -136,13 +136,13 @@ msgid "Specific instructions for classes:" msgstr "Instructions pour les classes:" #. type: \t; header -#: ../E/cbot.txt:95 +#: ../E/cbot.txt:96 #, no-wrap msgid "Specific instructions for strings:" msgstr "Instructions pour les chaînes de caractères:" #. type: Plain text -#: ../E/cbot.txt:96 +#: ../E/cbot.txt:97 #, no-wrap msgid "" "strlen Gets string length\n" @@ -164,13 +164,13 @@ msgstr "" "strlower Convertit en minuscules." #. type: \t; header -#: ../E/cbot.txt:105 +#: ../E/cbot.txt:106 #, no-wrap msgid "Specific instructions for files:" msgstr "Instructions pour les fichiers:" #. type: Plain text -#: ../E/cbot.txt:106 +#: ../E/cbot.txt:107 #, no-wrap msgid "" "open Opens a file\n" @@ -188,13 +188,13 @@ msgstr "" "deletefile Supprime un fichier" #. type: \t; header -#: ../E/battles.txt:53 ../E/cbot.txt:129 ../E/freehelp.txt:4 +#: ../E/battles.txt:53 ../E/cbot.txt:130 ../E/freehelp.txt:4 #, no-wrap msgid "See also" msgstr "Voir aussi" #. type: Plain text -#: ../E/cbot.txt:130 +#: ../E/cbot.txt:131 #, no-wrap msgid "Types and categories." msgstr "Types et catégories." @@ -672,13 +672,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:113 +#: ../E/cbot.txt:114 #, no-wrap msgid "Mathematical functions:" msgstr "Fonctions mathématiques:" #. type: Plain text -#: ../E/cbot.txt:114 +#: ../E/cbot.txt:115 #, no-wrap msgid "" "rand Returns a random value\n" @@ -1100,5 +1100,6 @@ msgid "" "static Declares a static class member\n" "synchronized Prevents simultaneous execution\n" "new Creates a new instance\n" -"this Reference to the current instance" +"this Reference to the current instance\n" +"super Grants access to the parrent class" msgstr "" diff --git a/help/generic/po/generic.pot b/help/generic/po/generic.pot index 042b9574..23058cb9 100644 --- a/help/generic/po/generic.pot +++ b/help/generic/po/generic.pot @@ -119,13 +119,13 @@ msgid "Specific instructions for classes:" msgstr "" #. type: \t; header -#: ../E/cbot.txt:95 +#: ../E/cbot.txt:96 #, no-wrap msgid "Specific instructions for strings:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:96 +#: ../E/cbot.txt:97 #, no-wrap msgid "" "strlen Gets string length\n" @@ -139,13 +139,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:105 +#: ../E/cbot.txt:106 #, no-wrap msgid "Specific instructions for files:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:106 +#: ../E/cbot.txt:107 #, no-wrap msgid "" "open Opens a file\n" @@ -157,13 +157,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/battles.txt:53 ../E/cbot.txt:129 ../E/freehelp.txt:4 +#: ../E/battles.txt:53 ../E/cbot.txt:130 ../E/freehelp.txt:4 #, no-wrap msgid "See also" msgstr "" #. type: Plain text -#: ../E/cbot.txt:130 +#: ../E/cbot.txt:131 #, no-wrap msgid "Types and categories." msgstr "" @@ -602,13 +602,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:113 +#: ../E/cbot.txt:114 #, no-wrap msgid "Mathematical functions:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:114 +#: ../E/cbot.txt:115 #, no-wrap msgid "" "rand Returns a random value\n" @@ -1028,5 +1028,6 @@ msgid "" "static Declares a static class member\n" "synchronized Prevents simultaneous execution\n" "new Creates a new instance\n" -"this Reference to the current instance" +"this Reference to the current instance\n" +"super Grants access to the parrent class" msgstr "" diff --git a/help/generic/po/pl.po b/help/generic/po/pl.po index 25c49dd8..2f6089eb 100644 --- a/help/generic/po/pl.po +++ b/help/generic/po/pl.po @@ -139,13 +139,13 @@ msgid "Specific instructions for classes:" msgstr "Instrukcje specyficzne dla klas:" #. type: \t; header -#: ../E/cbot.txt:95 +#: ../E/cbot.txt:96 #, no-wrap msgid "Specific instructions for strings:" msgstr "Instrukcje specyficzne dla łańcuchów:" #. type: Plain text -#: ../E/cbot.txt:96 +#: ../E/cbot.txt:97 #, no-wrap msgid "" "strlen Gets string length\n" @@ -167,13 +167,13 @@ msgstr "" "strlower Zamienia litery na małe" #. type: \t; header -#: ../E/cbot.txt:105 +#: ../E/cbot.txt:106 #, no-wrap msgid "Specific instructions for files:" msgstr "Instrukcje specyficzne dla plików:" #. type: Plain text -#: ../E/cbot.txt:106 +#: ../E/cbot.txt:107 #, no-wrap msgid "" "open Opens a file\n" @@ -191,13 +191,13 @@ msgstr "" "deletefile Usuwa plik" #. type: \t; header -#: ../E/battles.txt:53 ../E/cbot.txt:129 ../E/freehelp.txt:4 +#: ../E/battles.txt:53 ../E/cbot.txt:130 ../E/freehelp.txt:4 #, no-wrap msgid "See also" msgstr "Zobacz również" #. type: Plain text -#: ../E/cbot.txt:130 +#: ../E/cbot.txt:131 #, no-wrap msgid "Types and categories." msgstr "Typy i kategorie." @@ -709,13 +709,13 @@ msgstr "" "busy Sprawdza czy obiekt jest zajęty" #. type: \t; header -#: ../E/cbot.txt:113 +#: ../E/cbot.txt:114 #, no-wrap msgid "Mathematical functions:" msgstr "Funkcje matematyczne:" #. type: Plain text -#: ../E/cbot.txt:114 +#: ../E/cbot.txt:115 #, no-wrap msgid "" "rand Returns a random value\n" @@ -1179,5 +1179,6 @@ msgid "" "static Declares a static class member\n" "synchronized Prevents simultaneous execution\n" "new Creates a new instance\n" -"this Reference to the current instance" +"this Reference to the current instance\n" +"super Grants access to the parrent class" msgstr "" diff --git a/help/generic/po/ru.po b/help/generic/po/ru.po index 7676246a..1e6afd97 100644 --- a/help/generic/po/ru.po +++ b/help/generic/po/ru.po @@ -131,13 +131,13 @@ msgid "Specific instructions for classes:" msgstr "" #. type: \t; header -#: ../E/cbot.txt:95 +#: ../E/cbot.txt:96 #, no-wrap msgid "Specific instructions for strings:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:96 +#: ../E/cbot.txt:97 #, no-wrap msgid "" "strlen Gets string length\n" @@ -151,13 +151,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:105 +#: ../E/cbot.txt:106 #, no-wrap msgid "Specific instructions for files:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:106 +#: ../E/cbot.txt:107 #, no-wrap msgid "" "open Opens a file\n" @@ -169,13 +169,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/battles.txt:53 ../E/cbot.txt:129 ../E/freehelp.txt:4 +#: ../E/battles.txt:53 ../E/cbot.txt:130 ../E/freehelp.txt:4 #, no-wrap msgid "See also" msgstr "См. также" #. type: Plain text -#: ../E/cbot.txt:130 +#: ../E/cbot.txt:131 #, no-wrap msgid "Types and categories." msgstr "" @@ -640,13 +640,13 @@ msgid "" msgstr "" #. type: \t; header -#: ../E/cbot.txt:113 +#: ../E/cbot.txt:114 #, no-wrap msgid "Mathematical functions:" msgstr "" #. type: Plain text -#: ../E/cbot.txt:114 +#: ../E/cbot.txt:115 #, no-wrap msgid "" "rand Returns a random value\n" @@ -1066,5 +1066,6 @@ msgid "" "static Declares a static class member\n" "synchronized Prevents simultaneous execution\n" "new Creates a new instance\n" -"this Reference to the current instance" +"this Reference to the current instance\n" +"super Grants access to the parrent class" msgstr ""