Properly parse [code] tags

This commit is contained in:
Rémi Verschelde
2016-02-08 18:31:35 +01:00
parent 2f06d055e3
commit 5e53f26575
3 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -44,7 +44,7 @@ Member Function Description
Set the array of points forming the polygon.
When editing the point list via the editor, depending on :ref:`get_build_mode<CollisionPolygon2D_get_build_mode>`, it has to be a list of points (for :ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a list of lines (for :ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point.
When editing the point list via the editor, depending on :ref:`get_build_mode<CollisionPolygon2D_get_build_mode>`, it has to be a list of points (for ``build_mode``=0), or a list of lines (for ``build_mode``=1). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point.
.. _class_CollisionPolygon2D_get_polygon:
@@ -56,13 +56,13 @@ Return the list of points that define the polygon.
- void **set_build_mode** **(** :ref:`int<class_int>` build_mode **)**
Set whether the polygon is to be a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1).
Set whether the polygon is to be a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (``build_mode``=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (``build_mode``=1).
.. _class_CollisionPolygon2D_get_build_mode:
- :ref:`int<class_int>` **get_build_mode** **(** **)** const
Return whether the polygon is a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (:ref:`code<class_code>`build_mode:ref:`/code<class_/code>`=1).
Return whether the polygon is a :ref:`ConvexPolygon2D<class_convexpolygon2d>` (``build_mode``=0), or a :ref:`ConcavePolygon2D<class_concavepolygon2d>` (``build_mode``=1).
.. _class_CollisionPolygon2D_set_trigger:
@@ -82,9 +82,9 @@ Return whether this polygon is a trigger.
Return the index of the first shape generated by the editor.
When :ref:`code<class_code>`build_mode:ref:`/code<class_/code>` is set to generate convex polygons, the shape shown in the editor may be decomopsed into many convex polygons. In that case, a range of indexes is needed to directly access the :ref:`Shape2D<class_shape2d>`s.
When ``build_mode`` is set to generate convex polygons, the shape shown in the editor may be decomopsed into many convex polygons. In that case, a range of indexes is needed to directly access the :ref:`Shape2D<class_shape2d>`s.
When :ref:`code<class_code>`build_mode:ref:`/code<class_/code>` is set to generate concave polygons, there is only one :ref:`Shape2D<class_shape2d>` generated, so the start index and the end index are the same.
When ``build_mode`` is set to generate concave polygons, there is only one :ref:`Shape2D<class_shape2d>` generated, so the start index and the end index are the same.
.. _class_CollisionPolygon2D_get_collision_object_last_shape:
+14 -14
View File
@@ -39,33 +39,33 @@ Usage of regular expressions is too long to be explained here, but Internet is f
Currently supported features:
Capturing :ref:`code<class_code>`():ref:`/code<class_/code>` and non-capturing :ref:`code<class_code>`(?:):ref:`/code<class_/code>` groups
Capturing ``()`` and non-capturing ``(?:)`` groups
Any character :ref:`code<class_code>`.:ref:`/code<class_/code>`
Any character ``.``
Shorthand caracter classes :ref:`code<class_code>`\w \W \s \S \d \D:ref:`/code<class_/code>`
Shorthand caracter classes ``\w \W \s \S \d \D``
User-defined character classes such as :ref:`code<class_code>`:ref:`A-Za-z<class_a-za-z>`:ref:`/code<class_/code>`
User-defined character classes such as ``:ref:`A-Za-z<class_a-za-z>```
Simple quantifiers :ref:`code<class_code>`?:ref:`/code<class_/code>`, :ref:`code<class_code>`\*:ref:`/code<class_/code>` and :ref:`code<class_code>`+:ref:`/code<class_/code>`
Simple quantifiers ``?``, ``\*`` and ``+``
Range quantifiers :ref:`code<class_code>`{x,y}:ref:`/code<class_/code>`
Range quantifiers ``{x,y}``
Lazy (non-greedy) quantifiers :ref:`code<class_code>`\*?:ref:`/code<class_/code>`
Lazy (non-greedy) quantifiers ``\*?``
Begining :ref:`code<class_code>`^:ref:`/code<class_/code>` and end :ref:`code<class_code>`$:ref:`/code<class_/code>` anchors
Begining ``^`` and end ``$`` anchors
Alternation :ref:`code<class_code>`|:ref:`/code<class_/code>`
Alternation ``|``
Backreferences :ref:`code<class_code>`\1:ref:`/code<class_/code>` and :ref:`code<class_code>`\g{1}:ref:`/code<class_/code>`
Backreferences ``\1`` and ``\g{1}``
POSIX character classes :ref:`code<class_code>`:ref:`[:alnum:<class_[:alnum:>`]:ref:`/code<class_/code>`
POSIX character classes ``:ref:`[:alnum:<class_[:alnum:>`]``
Lookahead :ref:`code<class_code>`(?=):ref:`/code<class_/code>`, :ref:`code<class_code>`(?!):ref:`/code<class_/code>` and lookbehind :ref:`code<class_code>`(?<=):ref:`/code<class_/code>`, :ref:`code<class_code>`(?<!):ref:`/code<class_/code>`
Lookahead ``(?=)``, ``(?!)`` and lookbehind ``(?<=)``, ``(?<!)``
ASCII :ref:`code<class_code>`\xFF:ref:`/code<class_/code>` and Unicode :ref:`code<class_code>`\uFFFF:ref:`/code<class_/code>` code points (in a style similar to Python)
ASCII ``\xFF`` and Unicode ``\uFFFF`` code points (in a style similar to Python)
Word boundaries :ref:`code<class_code>`\b:ref:`/code<class_/code>`, :ref:`code<class_code>`\B:ref:`/code<class_/code>`
Word boundaries ``\b``, ``\B``
Member Function Description
---------------------------
+4 -4
View File
@@ -54,7 +54,7 @@ Return the custom solver bias.
Return whether this shape is colliding with another.
This method needs the transformation matrix for this shape (:ref:`code<class_code>`local_xform:ref:`/code<class_/code>`), the shape to check collisions with (:ref:`code<class_code>`with_shape:ref:`/code<class_/code>`), and the transformation matrix of that shape (:ref:`code<class_code>`shape_xform:ref:`/code<class_/code>`).
This method needs the transformation matrix for this shape (``local_xform``), the shape to check collisions with (``with_shape``), and the transformation matrix of that shape (``shape_xform``).
.. _class_Shape2D_collide_with_motion:
@@ -62,7 +62,7 @@ This method needs the transformation matrix for this shape (:ref:`code<class_cod
Return whether this shape would collide with another, if a given movemen was applied.
This method needs the transformation matrix for this shape (:ref:`code<class_code>`local_xform:ref:`/code<class_/code>`), the movement to test on this shape (:ref:`code<class_code>`local_motion:ref:`/code<class_/code>`), the shape to check collisions with (:ref:`code<class_code>`with_shape:ref:`/code<class_/code>`), the transformation matrix of that shape (:ref:`code<class_code>`shape_xform:ref:`/code<class_/code>`), and the movement to test ont the other object (:ref:`code<class_code>`shape_motion:ref:`/code<class_/code>`).
This method needs the transformation matrix for this shape (``local_xform``), the movement to test on this shape (``local_motion``), the shape to check collisions with (``with_shape``), the transformation matrix of that shape (``shape_xform``), and the movement to test ont the other object (``shape_motion``).
.. _class_Shape2D_collide_and_get_contacts:
@@ -70,7 +70,7 @@ This method needs the transformation matrix for this shape (:ref:`code<class_cod
Return a list of the points where this shape touches another. If there are no collisions, the list is empty.
This method needs the transformation matrix for this shape (:ref:`code<class_code>`local_xform:ref:`/code<class_/code>`), the shape to check collisions with (:ref:`code<class_code>`with_shape:ref:`/code<class_/code>`), and the transformation matrix of that shape (:ref:`code<class_code>`shape_xform:ref:`/code<class_/code>`).
This method needs the transformation matrix for this shape (``local_xform``), the shape to check collisions with (``with_shape``), and the transformation matrix of that shape (``shape_xform``).
.. _class_Shape2D_collide_with_motion_and_get_contacts:
@@ -78,6 +78,6 @@ This method needs the transformation matrix for this shape (:ref:`code<class_cod
Return a list of the points where this shape would touch another, if a given movement was applied. If there are no collisions, the list is empty.
This method needs the transformation matrix for this shape (:ref:`code<class_code>`local_xform:ref:`/code<class_/code>`), the movement to test on this shape (:ref:`code<class_code>`local_motion:ref:`/code<class_/code>`), the shape to check collisions with (:ref:`code<class_code>`with_shape:ref:`/code<class_/code>`), the transformation matrix of that shape (:ref:`code<class_code>`shape_xform:ref:`/code<class_/code>`), and the movement to test ont the other object (:ref:`code<class_code>`shape_motion:ref:`/code<class_/code>`).
This method needs the transformation matrix for this shape (``local_xform``), the movement to test on this shape (``local_motion``), the shape to check collisions with (``with_shape``), the transformation matrix of that shape (``shape_xform``), and the movement to test ont the other object (``shape_motion``).