.. api:: gma.platform .. api:: platform gma.platform ============ Provides a base platform object =================== ============================= Package gma/entities/platform Inheritance chain :api:`gma.shapes.rectangle` Descendants :api:`gma.deathPlatform` =================== ============================= Tags ---- *shape*, *platform* Properties ---------- .. admonition:: Inherited from :api:`gma.shapes.rectangle` :prop:`points `, :prop:`edges `, :prop:`width `, :prop:`height `, :prop:`depth `, :prop:`z `, :prop:`x `, :prop:`y `, :prop:`centre `, :prop:`left `, :prop:`right `, :prop:`top `, :prop:`bottom `, :prop:`yOffset `, :prop:`xOffset `, :prop:`type `, :prop:`alive `, :prop:`solid `, :prop:`tags ` Methods ------- .. admonition:: Inherited from :api:`gma.shapes.rectangle` :metho:`setPointsAndEdges `, :metho:`setCentre `, :metho:`setBottomLeft `, :metho:`xOf `, :metho:`yOf `, :metho:`toString `, :metho:`collided__deathtouch ` .. index:: pair: platform; collided() .. _gma.platform.collided: .. metho:: gma.platform.collided **collided** (where, focus, focusSide, focusVector) Does super.collided checks and also looks for the deathtouch tag **Overrides** :metho:`gma.shapes.rectangle.collided ` +-------------------------------------------------------------------------------------+ | Parameters | +=============+=====================+=================================================+ | where | :api:`gma.constant` | Side of this object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focus | object | Thing we collided with | +-------------+---------------------+-------------------------------------------------+ | focusSide | :api:`gma.constant` | Side of the focus object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focusVector | [x,y] | Amount focus is trying to move | +-------------+---------------------+-------------------------------------------------+